This applet allows you to interactively fly through a set of triangles. Use these keys (some have more than one alternative):
|Forward||Up arrow, 8|
|Backward||Down arrow, 2|
|Turn left||Left arrow, 4|
|Turn right||Right arrow, 6|
|Pitch down (Dive!)||W|
|Pitch up (Pull up!)||S|
|Slide left||Q, 7|
|Slide right||E, 9|
|Last movement again||Mouse click|
NOTE: You may have to click once on the applet panel before the keys will work. (This tells Netscape to send the keys to the applet).
Here's a browsable directory.
Some of this code was borrowed from Leonard McMillan's code, which he has made available as part of assignments for Comp 136. Part of the code was also adapted from example applets provided by Sun with their JDK.
Our textbook explains all of the 3D techniques we are using in these
Foley, van Dam, Feiner, Hughes. Computer Graphics: Principles and Practice, 2nd Ed. in C, Addison-Wesley, 1996.