Lecture3334 - 16827 - Shading Models
Lecture3334 - 16827 - 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,
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. 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
July 18, 2023 x
Computer Graphics 24
Gouraud Shading
C1
C3
C4
C3
C2
Discontinuity in rate
July 18, 2023 Computer Graphics of color change 29
occurs here
Mach Bands
A psychological phenomenon
whereby we see bright bands
where two blocks of solid colour
meet
A good demo is available to
experiment with this at:
http://www.nbb.cornell.edu/neur
obio/land/OldStudentProjects/cs4
90-96to97/anson/MachBandingA
pplet/
#lights
I i k d Nˆ Lˆi k s Vˆ Rˆ i
nshiny
I total k a I ambient
i 1