private ViewPort setupMirrorBuffers(Camera cam, Texture tex, boolean expand) {
        if (environment != null){
            if (environment.getApplication() != null){
                Camera cloneCam = cam.clone();
                ViewPort viewPort = environment.getApplication().getRenderManager().createPostView("MirrorView", cloneCam);
                cloneCam.setParallelProjection(true);
                viewPort.setClearFlags(true, true, true);
                viewPort.setBackgroundColor(ColorRGBA.Black);
                Picture pic = new Picture("fullscene");
                pic.setLocalTranslation(-0.75f, -0.5f, 0f);
                if( expand ) {
                    pic.setLocalScale(3f, 1f, 1f);
                } else {
                    pic.setLocalScale(1.5f, 1f, 1f);
                }
                pic.setQueueBucket(Bucket.Opaque);
                pic.setTexture(environment.getApplication().getAssetManager(), (Texture2D)tex, false);
                viewPort.attachScene(pic);
                viewPort.setOutputFrameBuffer(null);

                pic.updateGeometricState();

                return viewPort;
            } else {
                throw new IllegalStateException("This VR environment is not attached to any application.");
            }
        } else {
            throw new IllegalStateException("This VR view manager is not attached to any VR environment.");
        }
    }
Place the camera within the scene.
@param eyePos the eye position.
@param obsPosition the observer position.
@param cam the camera to place.
jme3-vr/src/main/java/com/jme3/input/vr/openvr/OpenVRViewManager.java