I need a pointer into the right direction guys:
I have a TwinView setup with two Screens with 1600x1200 each. Right now i can start a fullscreen app with 3200x1200 in which everything is stretched horizontally.
What i want is the following:
One camera has to draw to the left screen as if I opened a 1600x1200 fullscreen app. A second Camera draws another view of the same scene to the right screen.
How do I have to go about to achieve that? ideas? suggestions?
thanks in advance,
Andy
The StereoRenderPass in the JMEContext system allows drawing the left & right eye views in separate parts of the screen (the mode is called SIDE_BY_SIDE). The important parts of that code…
To draw in the left screen
cam.setViewPort(0f, 0.5f, 0f, 1f);
To draw in the right screen
cam.setViewPort(0.5f, 1.0f, 0f, 1f);
To draw in both screens (e.g the default)
cam.setViewPort(0f, 1f, 0f, 1f);
And don't forget to flush the render queue otherwise you will only see the last change of the camera take effect.
works like a charm, thxal.