Surface Details
✫ Incorp orate ne details in the scene.
✫ Mo deling with p olygons is impractical.
✫ Map an image texture/pattern on the surface
Catmull, 1974; Blin & Newell, 1976.
✫ Texture map
Mo dels patterns, rough surfaces, 3D e ects.
✫ Solid textures
3D textures to mo del wood grain, stains,
marble, etc.
✫ Bump mapping
Displace normals to create shading e ects.
✫ Environment mapping
Re ections of environment on shiny surfaces.
✫ Displacement mapping
Perturb the p osition of some pixels.
CPS124, 296: Computer Graphics Surface Details Page 1
Texture Maps
✫ Maps an image on a surface.
✫ Each element is called texel.
✫ Textures are xed patterns, pro cedurally gen-
erated, or digitized images.
CPS124, 296: Computer Graphics Surface Details Page 2
Texture Maps
✫ Texture map has its own co ordinate system;
st-co ordinate system.
✫ Surface has its own co ordinate system;
uv -co ordinates.
✫ Pixels are referenced in the window co ordinate
system Cartesian co ordinates.
Texture Space Object Space Image Space
(s,t) (u,v) (x,y)
CPS124, 296: Computer Graphics Surface Details Page 3
Texture Maps
v
u
y xs t
s x ys
z
y xs t
s x ys
z
CPS124, 296: Computer Graphics Surface Details Page 4
Texture Mapping
CPS124, 296: Computer Graphics Surface Details Page 5
Texture Mapping
Forward mapping: Texture scanning
✫ Map texture pattern to the ob ject space.
u = f s; t = a s + b t + c;
u u u
v = f s; t = a s + b t + c:
v v v
✫ Map ob ject space to window co ordinate sys-
tem.
Use mo delview/pro jection transformations.
Drawback: Selected texture patch usual do es not
match with pixel b oundaries.
✫ Requires fractional pixel calculations.
CPS124, 296: Computer Graphics Surface Details Page 6
Inverse Mapping
y xs t -1 -1 M M PV T
s x ys
z
✫ Map screen co ordinate system to ob ject space.
✫ Map ob ject co ordinate system to texture space.
✫ Avoids fractional pixel calculations.
✫ Allows anti-aliasing.
✫ Requires calculating inverse transformations;