de.jreality.tutorial.viewer
Class ViewerFromScratch
java.lang.Object
de.jreality.tutorial.viewer.ViewerFromScratch
public class ViewerFromScratch
- extends java.lang.Object
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.
Method Summary |
static void |
main(java.lang.String[] args)
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ViewerFromScratch
public ViewerFromScratch()
main
public static void main(java.lang.String[] args)