View Full Version : Stereo code for shutterglasses

11-23-2010, 08:44 AM
I want to change my application into stereo mode with shutterglasses. I think its named page-flipped. But I have no idea how to realize the shutter part.
Can somebody help me or give an example?

11-23-2010, 02:47 PM
Unless your card supports quad buffered stereo, you will probably not be able to do it.
Search these forums for "quad +buffered +stereo" across previous year, you will find a lot of information.

11-25-2010, 11:19 AM
Thanks, I read it. But I'm not sure if I understood it compleatly.
Because it don't know how to enable quad buffered stereo.

Is it simply to write glutInitDisplayMode(.... | GLUT_STEREO)? Or is it mandatory to deal with glDrawBuffer(GL_BACK_LEFT) / glDrawBuffer(GL_BACK_RIGHT) to create stereo viewing.

I don't even know if there is a connection between glutInitDisplayMode and glDrawBuffer method.
Because when I set GLUT_STEREO there is some stereoscopic effect on my application.
So do I need glDrawBuffer or is it only for applications when I'm not having a quadbuffered graphics card?

11-25-2010, 12:28 PM
Yes, once you set GLUT_STEREO, you can now render each eye separately with GL_BACK_LEFT and GL_BACK_RIGHT, then swapbuffers to make both available to the stereo display.

What is your card and operating system by the way ?

11-25-2010, 02:45 PM
QuadroFX 380 and I use Windows 7 32 bit