A simple class showing how to construct a simple viewer from scratch, without using
JRViewer
or another
ready-made method. In contrast to ready-made viewers, this examples shows:
- The camera is explicitly constructed.
- Lights, tools, and geometry are explicitly added to the scene graph.
- An instance of
Viewer
is created (in this case a JOGL viewer).
- A tool system is attached to the viewer in order for the tools to function.
- An instance of
RenderTrigger
is created to trigger rendering when changes occur .
- A Java Frame is created and filled with the viewing component of the viewer.
This version uses a JOGL viewer.