Results 1 to 2 of 2

Thread: Stereo rendering with QOpenGLWidget

  1. #1
    Join Date
    Dec 2016
    Posts
    1
    Qt products
    Qt5
    Platforms
    MacOS X Windows

    Default 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

  2. #2
    Join Date
    Jan 2008
    Location
    Alameda, CA, USA
    Posts
    5,230
    Thanks
    302
    Thanked 864 Times in 851 Posts
    Qt products
    Qt5
    Platforms
    Windows

    Default 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.
    <=== The Great Pumpkin says ===>
    Please use CODE tags when posting source code so it is more readable. Click "Go Advanced" and then the "#" icon to insert the tags. Paste your code between them.

Similar Threads

  1. QOpenGLWidget and text rendering
    By Kozersky in forum Newbie
    Replies: 1
    Last Post: 12th November 2015, 14:34
  2. QOpenGLWidget stereo double buffering
    By dropkickz in forum Qt Programming
    Replies: 0
    Last Post: 22nd June 2015, 10:47
  3. Replies: 8
    Last Post: 7th November 2012, 19:20
  4. OpenGl Stereo
    By Urkel05 in forum Qt Programming
    Replies: 6
    Last Post: 27th October 2009, 11:32
  5. Replies: 0
    Last Post: 15th August 2007, 09:23

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.