Search in sources :

Example 6 with SimpleApplication

use of com.jme3.app.SimpleApplication in project jmonkeyengine by jMonkeyEngine.

the class TestDepthStencil method simpleRender.

@Override
public void simpleRender(RenderManager rm) {
    Renderer r = rm.getRenderer();
    //do FBO rendering
    r.setFrameBuffer(fb);
    // FBO uses current camera
    rm.setCamera(cam, false);
    r.clearBuffers(true, true, true);
    rm.renderScene(fbNode, viewPort);
    rm.flushQueue(viewPort);
    //go back to default rendering and let
    //SimpleApplication render the default scene
    r.setFrameBuffer(null);
}
Also used : Renderer(com.jme3.renderer.Renderer)

Aggregations

SimpleApplication (com.jme3.app.SimpleApplication)2 Renderer (com.jme3.renderer.Renderer)2 IOException (java.io.IOException)2 BitmapText (com.jme3.font.BitmapText)1 Server (com.jme3.network.Server)1 ObjectStore (com.jme3.network.rmi.ObjectStore)1 Node (com.jme3.scene.Node)1 JmeContext (com.jme3.system.JmeContext)1 UnsupportedEncodingException (java.io.UnsupportedEncodingException)1 Field (java.lang.reflect.Field)1 InvocationTargetException (java.lang.reflect.InvocationTargetException)1 Method (java.lang.reflect.Method)1