Due: Monday, Nov. 22, 1:30 p.m.
Late Penalty: 50 points
|
Programming Project #6 (Individual)
Basic Lighting
|
Points Possible: 100 + 10 EC
The Assignment:
Using your robot project (Project #5), add realism to it using lights and material
values.
Details:
For the Basic 85 Points:
- Add at least one positional light to the scene. (It does not have to be a spotlight.)
- Add at least one directional light to the scene.
- The lights should differ from each other in some discernable
way. For example, the positional light could be bright white,
while the directional light could be more of an amber color (setting
sun?).
- Choose at least two different materials to cover your robot. The materials should differ in color as well as texture. One material should definitely be shinier than the other.
For the Remaining Points:
- (15 points) Allow the user to toggle the lights on/off using the keyboard. By using the (lowercase) d key, the user will be able to toggle the directional light off and on; by using the (lowercase) p key, the user will be able to toggle the positional light off and on.
- (10 points) Assign a global ambient light to the scene and allow the user to control it using the (uppercase) G key to increase the level of global ambient light and the (lowercase) g key to decrease the intensity.
Please name the program realistic_robot.cpp and put it in a p6 folder in our Dropbox, along with your makefile for
the project and any other files necessary for your project to run.