protected void buildScene() {
        Geometry cube1 = buildCube(ColorRGBA.Red);
        cube1.setLocalTranslation(-1f, 0f, 0f);
        Geometry cube2 = buildCube(ColorRGBA.Green);
        cube2.setLocalTranslation(0f, 0f, 0f);
        Geometry cube3 = buildCube(ColorRGBA.Blue);
        cube3.setLocalTranslation(1f, 0f, 0f);

        Geometry cube4 = buildCube(ColorRGBA.randomColor());
        cube4.setLocalTranslation(-0.5f, 1f, 0f);
        Geometry cube5 = buildCube(ColorRGBA.randomColor());
        cube5.setLocalTranslation(0.5f, 1f, 0f);

        rootNode.attachChild(cube1);
        rootNode.attachChild(cube2);
        rootNode.attachChild(cube3);
        rootNode.attachChild(cube4);
        rootNode.attachChild(cube5);
    }
Add 5 colorful cubes to the main scene.
jme3-examples/src/main/java/jme3test/post/TestMultiRenderTarget.java