CS 418 MP3 -- Teapot Contest
By Tianyi Wang
User interation:
ESC or 'q': quit the program.
'r': start or pause teapot rotation.
'c': turn on or off the teapot texture.
'v': turn on or off the environment mapping.
'b': turn on or off the lighting.
Note:
- Shaders are not used in this program.
- Scene is rendered in perspective projection.
- Hidden surfaces are removed by using z-buffer.
- Environment mapping is done by using sphere mapping.
- There is one light source in the scene, and its position is slightly to the right side of the center, so right side of the teapot appears brighter than the left side.
- Texture coordinates are generated by OpenGL automatically.
- Code itself should be self-explanatory.
- The scene is running at 60 fps.
- GLEW library is integrated into this project at compile stage.
Therefore on a machines that does not have GLEW installed as a shared library,
this project can still be compiled independently, and the pre-compiled executable
can still run.
Files explanations:
Teapot mesh information is stored in "wang103-mp3/Release/teapot.obj".
Texture used for sphere mapping is at "wang103-mp3/Release/env-texture.jpg".
Texture used on the teapot is at "wang103-mp3/Release/teapot-texture.jpg".
A screenshot of the rendered scene is at "wang103-mp3/screen_shot.png".