Sections

History

j3d.org

Keyboard Navigation

id Software have a lot to answer for in their series of first person shooters. So pervasive have their interfaces come now everything has to have "Doom-Style" navigation features. (It actually pre-dates Doom to the Wolfenstein games). Here, from someone

In response to some questions during mid 1999 Gary S. Moss posted a simple key behaviour class for simple doom style navigation. As this seemed pretty popular, but a little clunky, Andrew AJ Cain rewrote the code to make it much more generic.

The code is a standard behaviour class for use within the Java 3D scenegraph. Provide the code with the TransformGroup of the viewpoint that you want to manipulate and it takes care of the rest. As this is a behavior remember that you need to register scheduling bounds as well as add this to the scene graph.
KeyBehaviour.java The source file
Duncan Jauncey has an example applet available that uses the behaviour and loads 3DS models using the NCSA Portfolio loader. Take a look at his homepage and click on the ModelViewer link on the left.