OpenGL question - Viewer movement

I was wondering what is the most typical User Interaction technique used for OpenGL simulation applications. I was using Java3D’s OrbitBehavior, but now since we are switching to JOGL, I need a convient way to allow the user to view the scene as easy as possible.

Does anyone have any good links/code that I may take a look at to head me in a good direction?

Thanks for all your help.

Zak

Check www.gametutorials.com for their camera tutorials. This should get you started.

The following three files should help from the Xith3D library:

com.xith3d.scenegraph.Transform3D.java
com.xith3d.scenegraph.View.java

Check out the perspective method and the lookat method.

com.xith3d.renderer.jogl.CanvasPeerImpl.java

You can check the renderStart(View) method which among other things does this:


        gl.glMatrixMode(GL.GL_PROJECTION);
        gl.glLoadIdentity();
        view.getProjection().get(trans);
        gl.glLoadMatrixf(trans);
        view.getTransform().get(trans);
        gl.glMultMatrixf(trans);


Also consider gleem’s ExaminerViewer. This is what controls the camera motion in all or nearly all of the jogl-demos demonstrations. See http://jogl-demos.dev.java.net/ (the most recent version is checked into this source base) as well as http://www.media.mit.edu/~kbrussel/gleem/