Chapter 8 _shading-Models
Chapter 8 _shading-Models
Shading 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,
2 Computer Graphics Device coordinates April 11, 2025
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. and rendering the intensity at
every point of the surface.
Colour Models: Various colour schemes present
to represent the calculated intensities on your
computer.
INTERPOLATION SHADING
CONSTANT SHADING FACETED SHADING Used for polyhedron-mesh
Is used for objects defined as
No Shading approximation of curved surfaces
polyhedral.
Effects of
different
shading
techniques
FACETED SHADING INTERPOLATION SHADING
Effects of
different
shading
techniques
FACETED SHADING INTERPOLATION SHADING
N3
N i
Nv i 1
n
N
i 1
i
N3
I4
I3
y y4 y2 y1 y4
3
I4 I1 I2
y1 y2 y1 y2
1 y5 y 2 y3 y5
I5 I3 I2
Scan-line y3 y 2 y3 y 2
4 p 5
x5 x p x p x4
Ip I4 I5
x5 x4 x5 x4
2
24 Computer Graphics x April 11, 2025
Gouraud Shading
C1
C3
C4
C3
C2
Discontinuity in rate
27 Computer Graphics of color change
April 11, 2025
occurs here
Contents
#lights
I i k d Nˆ Lˆi k s Vˆ Rˆ i
nshiny
I total k a I ambient
i 1
N3
y4 y2 y1 y4
N1 N4 N1 N2
y1 y2 y1 y2
y5 y 2 y3 y5
N5 N3 N2
N4 y3 y 2 y3 y 2
Np
Scan line
p N5
y p y5 y4 y p
Np N4 N5
y 4 y5 y 4 y5
N2
32 Computer Graphics April 11, 2025
Phong Shading
Phong shading accept the same input as Gouraud shading
and produce very smooth-looking results.