Results 1 to 4 of 4

Thread: Poor OpenGL quality on Mac OS 10.5.8, even demos

  1. #1
    Join Date
    Aug 2009
    Posts
    140
    Thanks
    22
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Poor OpenGL quality on Mac OS 10.5.8, even demos

    Hi,

    I'm finding that on the Mac, under Qt (4.5, 4.6) everything is rendering very slowly and textures are oddly distorted--as though the viewport sides had been expanded each by 2x and the actual screen occupied the upper left-hand quadrant. You can see what I'm talking about with the attached screenshot from the 'HelloGL' demo--note the position of the central 'Qt'. Also, QGLFormat won't accept the QGL::StereoBuffers flag--the graphics fail completely if I include that. I don't have these problems with Ubuntu. Anyone know how I can fix this? Thank you!

    Matt
    Attached Images Attached Images
    Last edited by MattPhillips; 23rd February 2010 at 01:04.

  2. #2
    Join Date
    Oct 2006
    Posts
    279
    Thanks
    6
    Thanked 40 Times in 39 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Poor OpenGL quality on Mac OS 10.5.8, even demos

    I've also noted a regression with the latest releases. This is how it looks on my netbook with XP.
    screen.png

  3. #3
    Join Date
    Aug 2009
    Posts
    140
    Thanks
    22
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Poor OpenGL quality on Mac OS 10.5.8, even demos

    Two general possibilities occur to me as a way to resolve this--

    --There are #include's I should be putting in or path variables I need to modify,

    --or the issue is with the Qt OpenGL library and I need to get it so that Qt uses the system library instead (speculating here).

    Does anything along these lines sound right? If it's the second one, could someone tell me how to get Qt to use the system OpenGL library?

    Matt

  4. #4
    Join Date
    Aug 2009
    Posts
    140
    Thanks
    22
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Poor OpenGL quality on Mac OS 10.5.8, even demos

    Okay I figured it out--at least my specific problem. The cause of the slowdown and distortions was non-power-of-2 textures sizes. While Qt on Linux and, I think, previous Qt versions on the Mac had no problem with textures of arbitrary height/widths, with Qt 4.6. this was the difference. When I rewrote my code to force power-of-2 sizes, the problems disappeared. The only caveat is that I was not able to repair the 2D painting example by changing the OpenGL image from 200x200 to 256x256 pixels. The image got larger but retained the same distortions. Lastly, according to the 2.1 red book, only OpenGL versions prior to 2.0 have a problem with non-^2 textures. Has Qt 4.6 regressed to an earlier version of OpenGL? I haven't been able to successfully query the OpenGL version string for some reason.

    Matt

Similar Threads

  1. Poor OpenGL performance
    By rakkar in forum Newbie
    Replies: 1
    Last Post: 3rd September 2009, 19:51
  2. Qt4 poor printing performance
    By seneca in forum Qt Programming
    Replies: 4
    Last Post: 22nd January 2009, 14:23
  3. Poor performance with Qt 4.3 and Microsoft SQL Server
    By Korgen in forum Qt Programming
    Replies: 2
    Last Post: 23rd November 2007, 10:28
  4. poor Quality after QPixmap::scaled()
    By momesana in forum Qt Programming
    Replies: 2
    Last Post: 1st October 2007, 21:43
  5. Printing Screenshot -> poor quality
    By MarcSchubert in forum Qt Programming
    Replies: 2
    Last Post: 14th May 2007, 10:48

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.