All Questions
6
questions
1
vote
1
answer
41
views
Blinn-Phong specular light bleeding on triangles facing-away from light: what is the canonical solution?
In our implementation of the empirical Blinn-Phong shading model, we are facing a problem with light-bleeding of the specular component.
The model defines the half-vector $\vec{h} = \frac{\vec{v} + \...
1
vote
0
answers
234
views
Calculation of reflection vector in Phong specular lighting
I wrote the following phong reflection model for ray tracing in Rust, but I am not sure about the calculation of a reflection vector for the specular reflection.
...
1
vote
1
answer
202
views
Specular reflection with different viewing direction where reflection direction and viewing direction coincide
Suppose $P_1$ and $P_2$ two different points on surface. And let
$l$: be the light source direction,
$n$: normal vector
$r$: specular reflection direction
$v$: viewing direction .
In case 1 (at $P_1$...
0
votes
0
answers
27
views
Adding specular reflections to a ripple simulation
I am following the algorithm shown in this code here. Essentially there is a simple simulation of heights and then the difference in heights on the x and y axis respectively (sampling adjacent points) ...
3
votes
2
answers
2k
views
Phong: Real-time rendering of Metal and Plastic Materials
Using a shader that works like Phong, what would be the difference between painted Metal and plastic?
I seem to remember reading in books years ago, that I no longer have access to, the following:
...
3
votes
1
answer
370
views
How to send shadow rays to window light source with glazing
For rendering an indoor scene where light source is skylight coming in through
the window opening, one can consider the window polyline as the light
source, with the sky distribution, in direct ...