« Return to Thread: Stereo vision interlaced or page flipping by j3d. Help me!

Re: Stereo vision interlaced or page flipping by j3d. Help me!

by java3d-interest :: Rate this Message:

Reply to Author | View in Thread

>but with java 3d is possible implement stereoscopic page flipping?

Yes, of course ! Java3D uses OpenGL quad-buffer API for 3D stereo.
Quad buffer uses page flipping for switching left <-> right eye color buffer image.
Quad buffer stereo is available on professional OpenGL video cards as AMD/ATI FireGL and NVidia Quadro.

> I need of information or example code.

See below:
[code]

// create GraphConfig template  for stereo
GraphicsConfigTemplate3D template = new GraphicsConfigTemplate3D();
// PREFERRED uses stereo, IFF available. If stereo is not available, it falls back to
// monoscopic view.
template.setStereo(GraphicsConfigTemplate3D.PREFERRED);

// check system
GraphicsConfiguration conf = GraphicsEnvironment
.getLocalGraphicsEnvironment()
.getDefaultScreenDevice()
                                .getBestConfiguration(template);

// check if conf is OK
if (conf == null){
  throw new Exception("Graphics mode unsupported");
}

// create Canvas.
Canvas3D canvas = new Canvas3D( conf ) ;

[/code]

best luck ;)
[Message sent by forum member 'zesharp' (zesharp)]

http://forums.java.net/jive/thread.jspa?messageID=353587

---------------------------------------------------------------------
To unsubscribe, e-mail: interest-unsubscribe@...
For additional commands, e-mail: interest-help@...

 « Return to Thread: Stereo vision interlaced or page flipping by j3d. Help me!