I'm going to see if I can do nice things with the camera too (I just got the object rotating). Thanks for everyone's help so far! I used quaternions for the rotations, which are horrible at first, but are pretty ok after you figure them out.

Here are the files for the FPS Fly Through code that I converted to JAVA...this is not an exact conversion because I'm currently not using the 'speed' components that the original OpenGL code has and so if you use the mouse and keyboard at the same time it might appear that the scene is choppy....but overall it works pretty well...attached are the files.

I update the code to now include roll control capability and corrected mouse motion.

You can do either FPS style or modified FPS with roll rotation capability.

Controls are: Keyboard UP - moves the camera into the screen Keyboard DOWN - moves the camera back Keyboard LEFT - moves the camera to the left (teapot goes to the right) Keyboard RIGHT - moves the camera to the right (teapot to left) Keyboard PAGE_UP - moves the camera up along global Y axis (teapot goes down) (not "current" y axis of the view) Keyboard PAGE_DOWN - moves the camera down along global Y axis

Keyboard F - toggle between FPS and Modified FPS modes Keyboard COMMA - roll left (valid only in the modified FPS view) Keyboard PERIOD - roll right (valid only in the modified FPS view)

Combination of holding down mouse button and keyboard up/down/left/right keys makes you fly through the scene.

If you rotate the view in the FPS mode then the left-right mouse motion causes a rotation about the fixed vertical axis of the original scene.

If you rotate the view in the Modified FPS mode then the left-right mouse motion causes a rotation about the current UP vector of the view....this lets you basically fly through the scene and rotate in all different directions...it is awesome (I think)

java-gaming.org is not responsible for the content posted by its members, including references to external websites,
and other references that may or may not have a relation with our primarily
gaming and game production oriented community.
inquiries and complaints can be sent via email to the info‑account of the
company managing the website of java‑gaming.org