Due date: Wednesday, April 20.
Ex. 1
a. Using texture mapping applied to the unit cube from the cube and cubeview
programs, build a die with 6 faces somehow numbered from 1 to
6. Either use 6 textures showing the 6 numbers or use one texture for
the dot on each face of the die and arrange them by dividing the face
of the cube in smaller squares. Use some randomizing function to make
it show the user an arbitrary side each time they run the
application. Apply a trackball interface to your program.
For the texture, use a modulated or blended mode, and include the light and material properties from the most recent programs seen in class/homework.
List of source files seen in class that you may need for this
homework and the bitmap files:
teapot_texture.cc
bitmap.cc
bitmap.h
tiles.bmp
pattern.bmp
marble.bmp
Note: you can use other file formats like jpeg to load the texture
instead of bitmap if you have the appropriate functions.
Turn in: source code in electronic form and all of the bitmap (or other) files used in the program.