Stereo rendering with QOpenGLWidget
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
Re: Stereo rendering with QOpenGLWidget
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.