Lecture333616827Lighting Models
Lecture333616827Lighting Models
Lighting Models
3D Viewing Pipeline
Primitives
Object space
Modeling Transformation
World space
Viewing Transformation
Camera space
3D-Clipping
Projection
Normalized view space
Scan conversion, Hiding
Image space,
July 18, 2023 Computer Graphics Device coordinates 2
Image
Viewing Models
Need for different models
• Light Models: To take care of Light, its intensity and
effect on different textures.
• Shading Models: To take care of type of surface – its
shape, texture etc.
• Colour Models: Various colour schemes present to
represent the calculated intensities on your computer.
1. Light Sources
2. Ambient Light Model
3. Reflection Models
4. Refraction Models
5. Texture Surface Patterns
6. Displaying Light Intensities
Light Sources
• How is light scattered or reflected from a surface?
• The amount of light reaching the camera must be calculated.
• In graphics, we typical use several kinds of lights:
– Ambient light
– Point light sources
– Emissive light sources
Contrast
opaque surface vs
translucent surface.
Ambient Diffuse
Final
Specular Image
1. Light Sources
2. Ambient Light Model
3. Reflection Models
4. Refraction Models
5. Texture Surface Patterns
6. Displaying Light Intensities
Ambient Light
• Objects not directly lit are typically still visible
– e.g., the ceiling in this room, undersides of desks
Viewer Position
Not Important
Surface Angle
Not Important
1. Light Sources
2. Ambient Light Model
3. Reflection Models
1. Diffuse Reflection
2. Specular Reflection
4. Refraction Models
5. Texture Surface Patterns
6. Displaying Light Intensities
Diffuse Reflection
• Surfaces that are rough or grainy tend to reflect light in all
directions
• This scattered light is called diffuse reflection
I l ,incident I l cos
• So we can model the diffuse reflections as:
I l ,diff k d I l ,incident
k d I l cos
• So:
k d I l ( N L ) if N L 0
I l ,diff
0 if N L 0
1. Light Sources
2. Ambient Light Model
3. Reflection Models
1. Diffuse Reflection
2. Specular Reflection
4. Refraction Models
5. Texture Surface Patterns
6. Displaying Light Intensities
Specular Reflection
• Additionally to diffuse reflection some of the reflected light is
concentrated into a highlight or bright spot
• This is called specular reflection
Unit vector
to viewer
k s I l (V R) ns if V R 0 and N L 0
I l , spec
0.0 if V R 0 or N L 0
N
Viewer L1
L2
n
Exam Question
I I ambdiff I l ,diff I l , spec
Common
l 1
n
k a I a I l k d N L k s V R
ns
l 1