Stereo in Qt using Open GL

I am trying to make a stereo window in Qt. I seem to be getting lost in the interaction between Qt and OpenGL.

I have set up stereo context in my GL initialization code

QGLFormat fmt
fmt.setStereo(true)

      

and when I check the value, it goes back to its original state.

Then I draw in buffer GL_BACK_LEFT

and GL_BACK_RIGHT

(I also tried only GL_LEFT

and GL_RIGHT

), but the resulting scene contains both sets of polygons.

I know my hardware (NVIDIA Quadro FX 3500) supports stereo in the window, as other applications (for which I don't have the source code) work fine.

Is this symptom familiar to anyone, enough to make it obvious what dumb mistake I am making?

Windows XP, Qt 4.4.2, MS Studio 2005

+2


source to share


1 answer


It will never work.
Ask a question and find out the answer within a few minutes asking for help. Oh well, hopefully someone else can win.

I did it

fmt.setStereo(true)

      



but not this one

setFormat(fmt);

      

now seems to be working more than I want.

+4


source







All Articles