Mac Code
Windows Code
Shadows, Sky box, and camera movement
In this next assignment we are going to mix together some ideas from chapters 8 and 9 to make a simulated outdoor scene.
Here is what you will do:
- Start with the chapter 8 example program I provided above.
- Add a ground plane to the scene and color the ground plane to make it distinct from the pyramid and the torus.
- Position the pyramid and the torus so that they float above the ground plane. Can you get these floating objects to cast shadows on the ground plane below?
- Next, mix in the sky box from the chapter 9 example program I provided above.
- Finally, implement the logic from the first assignment to move and turn the camera. When you move the camera the sky box should not appear to move. When you turn the camera you should turn to look at a different portion of the sky box.