Hello zesharp,
thank you for your answer.
Your code is similar my. I know how enable stereo mode, but I don't know how to display the left and right image by page flipping.
My function doesn't work, it is:
[code]
public void render() {
if (gc == null) {
// Set up Graphics context
gc = canvas.getGraphicsContext3D();
gc.setAppearance(new Appearance());
gc.setBufferOverride(true);
}
gc.setStereoMode(GraphicsContext3D.STEREO_BOTH);
gc.clear();
if (g2d == null)
g2d = canvas.getGraphics2D();
gc.setStereoMode(GraphicsContext3D.STEREO_LEFT);
g2d.drawAndFlushImage(imageLeft, (xSize-imageLeft.getWidth())/2, (ySize-imageLeft.getHeight())/2, null);
gc.setStereoMode(GraphicsContext3D.STEREO_RIGHT);
g2d.drawAndFlushImage(imageRight, (xSize-imageLeft.getWidth())/2, (ySize-imageLeft.getHeight())/2, null);
gc.flush(true);
canvas.swap();
}
[/code]
Can you give me any suggestion?
[Message sent by forum member 'raffaele1983' (raffaele1983)]
http://forums.java.net/jive/thread.jspa?messageID=353748---------------------------------------------------------------------
To unsubscribe, e-mail:
interest-unsubscribe@...
For additional commands, e-mail:
interest-help@...