<- previous    index    next ->

Lecture 8, Texture Mapping in 3D

Texture mapping and bump mapping are computer techniques to make
images seem more realistic to observers. There is not enough
computer power to model a wall in a house, with its irregularities
and discolorizations, to make it appear "real" on a computer screen.
Thus, the technique of texture mapping or bump mapping is applied
to the graphics rendering of the wall to make it look more realistic.

Examples include:
earth.c
readtex.c
earth_small.rgb a binary file

The earth_small is stored as a flat 2D colored image is wrapped around
a sphere using texture mapping.

checker.c
An internally computer checker board pattern is texture mapped onto
a cube and the cube is shown from two views.

teapots.c
teapots.jpg

teapots  includes both lighting and texturing, which
are both closely related to how people interpret,
visualize,  the display of graphical objects.

Some times you may need terrain or a forest.
See the skyfly subdirectory on the distributed CD. The authors
created a file with the terrain of mountains and valleys.

Some scenes are best created using fractals. An example of
one tree, one of many shapes based on numeric parameters:

fractal.c  X Windows
fractalgl.c  OpenGL
Fractal.java  Java

The above can be used with a random number generator on position
and parameters to compute a forest background.

    <- previous    index    next ->

Other links

Go to top