The camera position and display settings may be loaded from a configuration *.jvd. This applet shows how to load a geometry model with a pre-defined camera configuration:
<applet
code=javaview.class width=200 height=200>
codebase=./ archive="javaview.jar"
<param name=model value="models/CsaszarTorus.jvx">
<param name=displayFile value="models/CsaszarTorus.jvd">
</applet>Note, the position of the model and display file must be given relative to the codebase of the applet.
Here is a running example:
Press right mouse button to select major interaction mode from popup menu, or use keyboard keys to temporarily switch between different modes (just keep a button pressed to switch mode temporarily). Some essential modes are:
o Rotate surface (this Orbit mode is the default mode) s Scale surface, drag in vertical direction t Translate surface in viewing plane r Reset camera and display, object returns to default position F1 or Ctrl-s
or
Right-MouseShow control window Help With all keyboard shortcuts, and help on problems. To modify appearance of the geometry press F1 or Ctrl-s to open the control panel and select the material panel (if not visible) via menu Inspector - Object - Material. Be sure that the mouse focus is inside the viewer otherwise, e.g., the window manager might react. To hide the control panel press F2.