de.jreality.tutorial.viewer
Class JOGLFBOTextureExample

java.lang.Object
  extended by de.jreality.tutorial.viewer.JOGLFBOTextureExample

public class JOGLFBOTextureExample
extends Object

This is a simple example showing how to use the class JOGLFBOViewer, a subclass of Viewer. This class allows you to use the rendered image from the JOGLFBOViewer as the source of a Texture2D for use in another Viewer.

When the example runs, you should see a black square with a rotating icosahedron within it. You can rotate the quadrilateral, then it will be clear the icosahedron is a 2D image textured onto it. The rotation of the icosahedron can be toggled via the '1' key.

Warning: JOGLFBOViewer is not a standard jReality class. It was written to show "proof of concept". It is not well-integrated into the rest of jReality (as this example shows). But because it might be useful even in its current form, I'm going ahead and writing this tutorial example. Perhaps someone will even decide it's worth improving and figure out how to do it right.

Author:
gunn

Constructor Summary
JOGLFBOTextureExample()
           
 
Method Summary
static void main(String[] args)
           
 SceneGraphComponent makeWorld()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JOGLFBOTextureExample

public JOGLFBOTextureExample()
Method Detail

makeWorld

public SceneGraphComponent makeWorld()

main

public static void main(String[] args)