public static void main(String[] args){
        TestRenderToTexture app = new TestRenderToTexture();
        app.start();
    }
This test renders a scene to a texture, then displays the texture on a cube.
jme3-examples/src/main/java/jme3test/post/TestRenderToTexture.java