PDA

View Full Version : Stereo rendering with QOpenGLWidget



hstokholm
16th December 2016, 13:52
Hi,

I am in the process of updating from QGLWidget to QOpenGLWidget but can't figure out how to upgrade our stereoscopic rendering code.
With QGLWidget we simply used glDrawbuffer(GL_LEFT / GL_RIGHT) but this is not working with the new framebuffer backend of QOpenGLWidget.

Anyone know if it is possible with QOpenGLWidget?

Thanks

- Heine

d_stranz
16th December 2016, 18:45
I think you need to look into QSurfaceFormat and setting a custom format for your QOpenGLWidget. By default, stereo rendering is disabled in the QSurfaceFormat instance embedded in QOpenGLWidget.