C481 B581 Computer Graphics
Dana Vrajitoru

Texture Mapping

Texture Texture in OpenGL Texture from a Bitmap File Applying the Texture Texture Mode Texture Filters Texture Coordinates Example of source code: teapot_texture.cc, and some bitmap files it can use: tiles.bmp, pattern.bmp, marble.bmp, liquid.bmp, bricks.bmp.

Snapshots from this program:


GL_DECAL option for the texture mode, marble bitmap.


GL_DECAL option for the texture mode, pattern bitmap.


GL_MODULATE option for the texture mode, marble bitmap.


GL_BLEND option for the texture mode, applied to the marble bitmap with a previously defined purple color.


GL_BLEND option for the texture mode, applied to the tiles bitmap with a previously defined purple color.

Another example with the texture applied to a quadric object: texture_quadric.cc


Last modified: April 12, 2005.
danav@cs.iusb.edu.