1
Texturing
Outline
- Applications
- Applications
Texturing Outline Applications Applications Bump mapping - - PDF document
Texturing Outline Applications Applications Bump mapping Environment mapping 1 Bump Mapping So far weve been thinking of textures modulating color only modulating color only Decal Lightmap But any other
1
2
– Decal – Lightmap
Computed at vertices for Gouraud shading; color – Computed at vertices for Gouraud shading; color interpolated – Interpolated from vertices for Phong shading
courtesy of Nvidia
3
from Hill
from Akenine-Moller & Haines
4
from Akenine-Moller & Haines
Z coordinate set to some constant scale factor; (X, Y) normalized to [0, 1] range. Right image is mostly blue because “straight up” vector is (0, 0, 1)
courtesy of Nvidia
5
from MIT CG lecture notes
courtesy of A. Awadallah
Height map Bump texture applied to teapot
6
need to follow reflection of eye vector back to first y intersection with another surface and get its color
from Angel
position (x, y, z)—can use any attribute of that p
y
– Ray comes from another location – Ray is surface normal n at (x, y, z) – Ray is reflection-from-eye vector r at (x, y, z) – Etc.
courtesy of R. Wolfe
7
courtesy of R. Wolfe
Different ray directions for a spherical projector
from center of object with sphere or box as from center of object with sphere or box as intermediate surface
surface provides texture coordinates for reflection/environment mapping
courtesy of R. Wolfe
8
courtesy of P. Debevec
9
v
from Angel
courtesy of G. Miller
10
From “Terminator II”