description
demonstration
comparisions
- In each of the following comparisions, one parameter is changed while keeping all others constant.
- Decreasing
ka
darkens object as it decreases ambient color component.
- Decreasing
kd
darkens object as it decreases diffused color component.
- Decreasing ks decreases shininess as it decreases reflective color component.
- Increasing n decreases the size of the reflected spot. As higher powers of a number < 1, viz. coefficient of reflective color, go to zero.
- Changing Od changes base ambient and diffused color of object but keeps reflective color same.
- Changing Os changes reflective color of object but keeps ambient and diffused color same.
- Point source reflections are more focused than directional source.
point source (at eye) | directional source (towards view dir) |
| |
- Increasing number of lights increases intensity of reflections.
- Changing position of positional light moves the reflection spots towards the light as expected.
- Increasing light rgb values increases intensity of diffused, ambient and reflected colors.
(0.25, 0.25, 0.25) | (.5, .5, .5) | (1, 1, 1) |
| | |
disabled | enabled |
| |
- Vertex normals can be used to add smoothness without changing the mesh. In both of the below images the triangles have exactly same positions. Tuning vertex normals generates illusion of smoothness.
flat | smooth |
| |
- Viewing distance can be adjusted to focus on objects at that particular distance while blurring out objects at other distances.
disabled | near focus | far focus |
| | |
- Parallel projection has no perspective distortion, therefore spheres look like perfect circles.
parallel | perspective |
| |
- A simple reflection scene.
- A refraction scene. Moving the back sphere, moves its image on the font sphere in reverse direction.
- A transparent hollow sphere in a colorful room.
- A transparent sphere of higher refractive index inside another transparent sphere. Increasing inner sphere size increases the shadow it casts (on the bottom left).
- Total internal reflection (TIR). A transparent sphere of refractive index
i
inside another transparent sphere of refractive index o
.
i = o (no TIR) | i > o (TIR) |
| |