Lecture 15/16 Lighting/Texture Flashcards
What does pixel colour depend on?
What angle is the ray hitting the geometry?
Where are the light sources?
How strong are the light sources?
What materials are used for primitives?
What does a pure diffuse (“Lambertian”) source do?
A pure diffuse (“Lambertian”) surface scatters light equally in all directions
What does a pure mirror source do?
A pure mirror reflects light along a line symmetrical about the surface normal
Visualise the Lambertian, Phong model and ambient light ray diagrams
What is the most popular lighting model?
The Phong lighting model is the most popular lighting model (also used by OpenGL)
How does the Phong lighting model work?
Based on the light behavior in the real world (but approximation)
- AMBIENT: Ambient term accounts for light scattered equally about entire scene
- DIFFUSE: Dull surfaces have large highlights that fall off more gradually (diffuse)
- SPECULAR: Shiny surfaces have small, intense specular highlights
How does the viewer perceive Diffuse/Lambertian reflection in different positions?
Light is reflected equally in all directions
- the diffuse reflection does not depend on the viewer position
The amount of light on a unit surface depends on what?
- Light from a single source is reflected equally in all directions
- But: amount of light reaching unit surface area depends on the cosine of the angle between the light and the surface (Lambert’s Law)
What is the diffuse term in the lighting model? (Diffuse/Lambertian reflection)
Do this 3 times, for
red, green, and blue.
What does the intensity of the specular highlight depend on?
The intensity of the specular highlight depends on theproximity of the viewing ray to the reflected ray
What is the Specular term in lighting model (Specular reflection: Phong shading)
Do this 3 times, for
red, green, and blue.
What happens when diffuse and specular are combined?
- Diffuse term leads to dull surface
- Specular term leads to shiny surface
What does alpha control in the Phong lighting model?
Shininess effect
What are the consequences of increasing shininess in the Phong lighting model?
- By increasing shininess, the highlight is getting smaller and sharper
- The material thus appears like shinier plastic
How does light scatter in the real world?
Ambient Lighting: Indirect reflections
In the real world, light scatters from object to object