public class JOGLFBOTextureExample extends Object
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.
Constructor and Description |
---|
JOGLFBOTextureExample() |
Modifier and Type | Method and Description |
---|---|
static void |
main(String[] args) |
SceneGraphComponent |
makeWorld() |
public SceneGraphComponent makeWorld()
public static void main(String[] args)