I'm trying to do a stereoscopic visualization in Qt. I have found some tutorials but all of them use the older QGLWidget
and the buffers GL_FRONT_LEFT
and GL_FRONT_RIGHT
.
AS I'm using the newer QOpenGLWidget
I tried drawing images to the same buffers but the call to glDrawBuffer(GL_FRONT_LEFT)
is generating a GL_INVALID_ENUM
.
I also saw that the default buffer is GL_COLOR_ATTACHMENT0
instead of GL_FRONT_LEFT
so I imagine I need to use a different set of buffers to enable stereo.
Which buffers should I use?
you should use
glDrawBuffer(GL_BACK_RIGHT); glDrawBuffer(GL_BACK_LEFT);
look this link
I am working on the same thing with Nvidia Quadro 4000 . No luck yet, I got 2 images slightly offset, the IR tansmitter light up BUT the screen flicker!
GOT IT: the sync was 60hz, I put it to 120 and everything works fine I still need work on the right/left frustrum to say eureka.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.