Login  Register

Re: How to enable quad-buffered stereo rendering

Posted by Sven Gothel on Jul 06, 2010; 1:38pm
URL: https://forum.jogamp.org/How-to-enable-quad-buffered-stereo-rendering-tp938684p946403.html

On Sunday, July 04, 2010 21:22:04 michael.nischt [via jogamp] wrote:

>
> 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.

Yep, our colleague Rami is aware of this too,
and a fix will be provided.

Thank you for the good description.

If you have time (and still a bit patience with JOGL),
you may like to provide a test case to reduce some overhead
and misunderstandings here.

>
> 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

Cheers, Sven