next up previous contents
Next: 5.1 Review Up: Programming with OpenGL: Advanced Previous: 4.5 Moving the Current

5 Texture Mapping

 

Texture mapping is one of the main techniques to improve the appearance of objects shaded with OpenGL's simple lighting model. Texturing is typically used to provide color detail for intricate surfaces., e.g, woodgrain, by modifying the surface color. Environment mapping is a view dependent texture mapping technique that modifies the specular and diffuse reflection, i.e. the environment is reflected in the object. More generally texturing can be thought of as a method of perturbing parameters to the shading equation such as the surface normal (bump mapping), or even the coordinates of the point being shaded (displacement mapping). OpenGL 1.1 readily supports the first two techniques (surface color manipulation and environment mapping). Texture mapping can also solve some rendering problems in less obvious ways. This section reviews some of the details of OpenGL texturing support, outline some considerations when using texturing and suggest some interesting algorithms using texturing.





David Blythe
Thu Jul 17 21:24:28 PDT 1997