Shading Methods
Shading Methods
Polygon Rendering
Polygon
renderingis a method of
creating two dimensional images
from a group of three
dimensional objects.
These three dimensional objects
are made up of flat polygons, any
shape can be approximated using
polygons.
Rendering
methods used in
computer graphics
Flat surface rendering
Gouraud surface rendering
Phong surface rendering
Flat
All
No Surface Rendering
Limitations
It
Gouraud Surface
Rendering
Gouraud
average unit
normal vector at
v is given as:
N1
N1 N 2 N 3 N 4
Nv
N1 N 2 N 3 N 4
Nv
v
N4
N3
N2
or
more
n
generally:
Nv
N
i 1
n
N
i 1
I4
1
Scan-line
y1 y2
I1
y1 y2
I2
y5 y 2
y3 y5
I5
I3
I2
y3 y 2
y3 y 2
Ip
x5 x p
x5 x4
I4
x p x4
x5 x4
I5
Y-1
Scan-line
I 2 I1
I' I
y1 y2
2
x
shading
tends to miss
certain highlighting
In particular Gouraud
shading has a
problem with specular
reflections
Also, the linear intensity
interpolation can cause bright or dark
intensity streaks known as Mach bands
Gouraud shading
The
Mach Bands
A
psychological phenomenon
whereby we see bright bands
where two blocks of solid colour
meet
N4
p
y4 y2
y1 y4
N4
N1
N2
y1 y2
y1 y2
y5 y 2
y3 y5
N5
N3
N2
y3 y 2
y3 y 2
Np
Scan line
N5
N2
Np
y p y5
y 4 y5
N4
y4 y p
y 4 y5
N5
Summary
For
realistic rendering of
polygons we need interpolation
methods to determine lighting
positions
Flat shading is fast, but
unrealistic
Gouraud shading is better, but
does not handle specular
reflections very well
Phong shading is better still, but
THANK
YOU