
Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!

Spring 2009
Surprise, surprise — for this assignment, you are asked to figure out and implement the rest of the TODO method stubs in the Java projection program.
We are still on these readings, and they are worth re-reading for additional/deeper understanding (especially in conjunction with doing the home- work for submission):
Figure out and implement the gluPerspective and gluLookAt workalike methods in the Java projection program (called perspective and lookAt , respectively). You can test your solutions by using these methods in the projection program: gluPerspective when setting up the viewing volume, and gluLookAt when setting up the “camera” for the scene (see the comments at the relevant places for some additional informa- tion; note that, when you have successfully imple- mented gluLookAt , the modified code won’t look exactly like what was there before, but should still be pretty close). gluPerspective must end with the corresponding call to glFrustum ( frustum in the projection code) — it es- sentially converts the y -axis field of view, and as- pect ratio into the corresponding left, top, right, and bottom boundaries of the viewing volume. Submit hardcopy showing your mathematics or geometry for gluPerspective and gluLookAt (including any relevant diagrams and proofs), and commit your implementations back to CVS.