Skip to content

wang103/TeapotContest

Repository files navigation

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:

  1. Shaders are not used in this program.
  2. Scene is rendered in perspective projection.
  3. Hidden surfaces are removed by using z-buffer.
  4. Environment mapping is done by using sphere mapping.
  5. 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.
  6. Texture coordinates are generated by OpenGL automatically.
  7. Code itself should be self-explanatory.
  8. The scene is running at 60 fps.
  9. 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".

About

A class project for my interactive computer graphics class. It shows a teapot with texture mapping and environment mapping etc.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors