Exercises
Exercise 1: Shapes and GluLookAt()
Part a
Use the examples in Appendix C (Shapes) to accomplish the following - in separate programs - we will put them together later
A red solid cube, a green wire cone, and a blue wire teapot. Draw the solid cube and wire cone vertical as in the examples. Draw the teapot rotated to the right 90 degrees.
Use the default view for each - looking down or toward the negative z axis.
Part b
The text refers to stacks and slices. Define these terms by using the wire cone as an example.
Part c
Same as part a except provide the view as seen looking from above (down or toward the negative y axis)
Exercise 2: Projection Transformations - gluPerspective(), and glOrtho()
Draw a red solid teapot at the origin with a green solid teapot behind it (along z axis) and a blue teapot behind the green teapot (on z axis)
Provide viewings using the 3 techniques covered: glFrustrum, glPerspective, and glOrtho.
Place the viewing position at the default position.