Create a standalone viewer

From JReality Wiki
Jump to: navigation, search

Source file: ViewerFromScratch


Run as Java webstart


For many purposes, the JRViewer class will satisfy your viewing needs. However, there may be situations where you wish to create your own viewer from scratch. This example shows how you can go about doing this.


Note that this example has to explicitly:

  • create a scene graph containing
    • a camera, and
    • one or more lights;
  • allocate an instance of Viewer, in this case de.jreality.jogl.Viewer, the JOGL backend viewer,
  • activate the jReality tool system for this scene graph, and
  • allocate a Java Frame and add the viewer's viewing component to it.


Previous: Extract viewer from ViewerApp Developer Tutorial: Contents Next: Add VR functionality