views:

284

answers:

2

I am trying to make a stereo window in QT--I seem to be lost in the interaction of QT and OpenGL.

I have set the stereo context in my GL initialization code

QGLFormat fmt

fmt.setStereo(true)

and when I check the value, it comes back true.

I then draw into the GL_BACK_LEFT and GL_BACK_RIGHT buffers (I have also tried just GL_LEFT and GL_RIGHT) but the resultant scene contains both sets of polygons.

I know that my hardware (NVIDIA Quadro FX 3500) supports stereo in a window, since other applications (for which I do not have source code) work fine.

does this symptom seem familiar to anybody, enough so that it might be obvious what stupid mistake I am making?

Windows XP, QT 4.4.2, MS Studio 2005

thanks in advance for any help

+1  A: 

it never fails. Ask a question, and figure out the answer within minutes of asking for help. Oh well, hopefully somebody else might benefit

I was doing this

fmt.setStereo(true)

but not this

setFormat(fmt);

now it seems to work more like I want to to

jhowland
A: 

its great that you got the solution. I was trying to develop a 3D stereo application using NVIDIA quadro card and glasses also and i was trying to use openGL, QT openGL also but I failed, no documents or no example nothing. I was successfully with C++ and also c# DIrect3D(Directx) but it seems difficult. I hope I can have some advices from you. BR,Lam

Lam Le