Illinois Computer Science
CS 418 Interactive Computer Graphics
MP3 - B: Environment Maps - The Environment Mapping Part

Due: 11:59pm CDT, November 28, 2018

Complete MP 3 by using cubemapping to make the teapot reflect the environment. You should add the following features to your code from part A:

  1. A radio button (or similar control) in the HTML that allows the user to switch between simply shading the teapot and making the teapot reflective.
  2. If the user selects reflective, your code should render the teapot using a cubemap. The reflection should be consistent with the scene rendered on the skybox.
  3. Add the capability to rotate the teapot (but don't remove the orbiting ability). This is different from the orbiting motion from the last part. This should look like only the teapot is moving (as opposed to you moving around the teapot). Make sure the image on the teapot changes correctly (what should the reflection look like when orbiting vs. when rotating the teapot?).

Note: When using the environment map to shade the teapot, you do not have to keep Blinn-Phong or Phong illumination on.

Submission:

You will upload your files to compass in a zipped folder with name ${NetID}_MP3.zip. Include all of the files necessary for your application to run. Name your webpage Teapot.html

Grading:

The assignment will be graded based on the following scale: