










































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!











































MIT EECS 6.837, Durand and Cutler
(0,0)
(1,0)
(0,1)
Docsity.com
(0,3)
(0,3)
seamless tiling
(repeating)
tiles with visible seams
(0,0)
(3,0)
(0,0)
(3,0)
Docsity.com
texture source
what we get
what we want
Courtesy of
Leonard McMillan, Computer Science
at the University of North Carolina in Chapel Hill
.
Used with permission.
Compare linear interpolation in screen space to interpolation in 3-space
t^
values to
s
values:
Solve for
s
in terms of
t :
Unfortunately, at this point in the pipeline (after projection) we nolonger have
z
.^
However, we do have
w
1/z
1
and
w
2
1/z
, so: 2
Texture mapping can be used to alter some or all of theconstants in the illumination equation: as the final color for thepixel, or as the diffuse color, or to alter the normal, ... thepossibilities are endless! (e.g. GL_DECAL, GL_MODULATE,GL_BLEND, ...)
Phong's Illumination Model
Constant Diffuse Color
Diffuse Texture Color
Texture used as Label
Texture used as Diffuse Color