Login  Register

Re: How to enable quad-buffered stereo rendering

Posted by michael.nischt on Jul 04, 2010; 7:22pm
URL: https://forum.jogamp.org/How-to-enable-quad-buffered-stereo-rendering-tp938684p942809.html

Michael, thanks for looking into this!

Yes, the quad-buffered technique is around since a decade or so. When enabled, you simple draw the scene twice: once with glDrawBuffer(GL_BACK_LEFT) and then with glDrawBuffer(GL_BACK_RIGHT). Unfortunately, the last call results in a GL_INVALID_OPERATION since there are no right buffers because glGetBooleanv(GL_STEREO, ..) returns GL_FALSE.

Setting Capabilites.setStereo(true) in the desired caps does not help. There reason is that the choosing is done by returning an index into the "available" array and all of the return false for getStereo(). Hence it is the same for "chosen" configuration.

I assume it is a simple bug in Jogl querying/setting the stereo capability bit since in works in python with glutInitDisplayMode (GLUT STEREO..).

Anyhow, I'll with try with the LWJGL tomorrow or on Tuesday and let you know if it works..

Best,
 Michael