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:
- 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.
- 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.
- 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:
- 2 pts - The teapot surface reflects the environment
- 2 pts - Teapot rotation works correctly and the image on the teapot changes correctly
- 1 pts - Image on the teapot changes correctly when orbiting the teapot
- 1 pts - Your code should be commented and user interface on the webpage should be clear