Complete MP 3 by using cubemapping to make the teapot reflect the environment. You should add the following features to your code from part 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.
- If the user selects reflective, youe code should render the teapot using a cubemap. The reflection should be consistent with the scene rendered on the skybox.
- Add the capaibility to rotate the teapot. Make sure the image on the teapot changes correctly
Note: When using the environment map to shade the teapot, you do not have to implement Blinn-Phong or Phong illumination.
Recovering Points from Part 1
If you were unable to submit correctly working code for Part 1, you can recover most of those points by submitting working code for Part 2.
To do this you need to:
-
Fix whatever bugs you had in Part 1
- When you submit Part 2, leave a note Compass saying that you fixed problems you had in Part 1
If you do this, your grade for Part 1 will be adjusted to be 8 out of 9 points
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
Rubric:
Points | Description |
---|---|
3pts | The teapot surface reflects the environment |
2pts | Teapot rotation works correctly and the image on the teapot changes correctly |
1pt | Your code should be commented and user interface on the webpage should be clear |