Results 1 to 5 of 5

Thread: capacity to use SampleBuffers in QtOpenGL

  1. #1
    Join Date
    Apr 2009
    Posts
    10
    Qt products
    Platforms
    Unix/X11

    Default capacity to use SampleBuffers in QtOpenGL

    Hi, I've just started using QtOpenGL with my graphics view to improve performance (it rocks) and was thinking that the results was looking really ugly. Then I noticed that QtOpenGL doesn't allow me to set setSampleBuffers(True) (or rather, it just ignores it).

    Running the samplebuffers example just gives me a dialog with "This system does not have sample buffer support."

    Sorry if this is a lame question, but I'm new to using opengl.

    I'm running ubuntu 64 bit .. what do I need to run to check I have sufficient hardware and the right software (X presumably) config to do some antialiasing ?

  2. #2
    Join Date
    Jan 2011
    Location
    Verona(Italy)
    Posts
    7
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: capacity to use SampleBuffers in QtOpenGL

    Hi, you set the viewport of qgraphicsview with something like this ?:
    Qt Code:
    1. setViewport(new QGLWidget(QGLFormat(QGL::SampleBuffers), this));
    To copy to clipboard, switch view to plain text mode 

  3. #3
    Join Date
    Apr 2009
    Posts
    10
    Qt products
    Platforms
    Unix/X11

    Default Re: capacity to use SampleBuffers in QtOpenGL

    Quote Originally Posted by Zed View Post
    Hi, you set the viewport of qgraphicsview with something like this ?:
    Qt Code:
    1. setViewport(new QGLWidget(QGLFormat(QGL::SampleBuffers), this));
    To copy to clipboard, switch view to plain text mode 
    Well, the python equivalent:

    Qt Code:
    1. glf = QtOpenGL.QGLFormat.defaultFormat()
    2. glf.setSampleBuffers(True)
    3. glf.setSamples(4)
    4. self.setViewport(QtOpenGL.QGLWidget(glf))
    5. self.setViewportUpdateMode(QtGui.QGraphicsView.FullViewportUpdate)
    To copy to clipboard, switch view to plain text mode 

    This goes through fine but checking later:

    self.viewport().format().sampleBuffers()

    gives False, and the results are clearly not antialiased.

    glxgears looks smooth and crisp and glxinfo returns a ton of information but I don't know what I'm looking for

  4. #4
    Join Date
    Apr 2009
    Posts
    10
    Qt products
    Platforms
    Unix/X11

    Default Re: capacity to use SampleBuffers in QtOpenGL

    looking at the output of glxinfo I have the extension:

    GLX_ARB_multisample

    Shouldn't this mean that my graphics card and set up can use the sample buffers? If so why wont QT pick up on this?

  5. #5
    Join Date
    Apr 2011
    Posts
    1
    Qt products
    Qt4
    Platforms
    Windows

    Exclamation Re: capacity to use SampleBuffers in QtOpenGL

    same question as yours, but my GPU is GT240,how could not it support sampleBuffers?!!!!!! I doult there is some bugs....... maybe I am wrong.....

Similar Threads

  1. Qtopengl es 2.0 does not work on mips processor
    By soumya in forum Qt for Embedded and Mobile
    Replies: 0
    Last Post: 30th September 2010, 06:24
  2. image processing with qtopengl
    By sisilet in forum Qt Programming
    Replies: 1
    Last Post: 10th June 2010, 21:42
  3. QtOpenGL example problem on wince6
    By lamosca in forum Installation and Deployment
    Replies: 1
    Last Post: 21st April 2010, 16:56
  4. Does QSqlTableModel have limited capacity?
    By metdos in forum Qt Programming
    Replies: 2
    Last Post: 1st January 2010, 22:06
  5. QtOpenGL how to draw text?
    By AndreaCe in forum Qt Programming
    Replies: 0
    Last Post: 22nd July 2009, 00:50

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
  •  
Qt is a trademark of The Qt Company.