Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Game Development
  4. QT 5.4 OpenGL aliasing problem

QT 5.4 OpenGL aliasing problem

Scheduled Pinned Locked Moved Game Development
qt 5.4openglqsurfaceformat
4 Posts 2 Posters 1.9k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • E Offline
    E Offline
    ed3D
    wrote on last edited by
    #1

    What QSurfaceFormat setting do I need to set to prevent aliasing?

    Currently I'm using:

    fmt.setProfile(QSurfaceFormat::CoreProfile);
    fmt.setOption(QSurfaceFormat::StereoBuffers);
    fmt.setRenderableType( QSurfaceFormat::OpenGL );
    
    fmt.setSamples(4);
    
    timdayT 1 Reply Last reply
    0
    • E ed3D

      What QSurfaceFormat setting do I need to set to prevent aliasing?

      Currently I'm using:

      fmt.setProfile(QSurfaceFormat::CoreProfile);
      fmt.setOption(QSurfaceFormat::StereoBuffers);
      fmt.setRenderableType( QSurfaceFormat::OpenGL );
      
      fmt.setSamples(4);
      
      timdayT Offline
      timdayT Offline
      timday
      wrote on last edited by
      #2

      I certainly notice a difference in my apps between fmt.setSamples(1) and fmt.setSamples(16), at least for whether polygon edges appear "jaggy" or not. What GPU HW are you using? Got screenshots?

      1 Reply Last reply
      0
      • E Offline
        E Offline
        ed3D
        wrote on last edited by
        #3

        How do I post a screen shot?

        Another name for the problems maybe Z fighting.

        GPU HW is Quadro 5000.

        1 Reply Last reply
        0
        • timdayT Offline
          timdayT Offline
          timday
          wrote on last edited by
          #4

          Z-fighting is a completely different issue from aliasing. Maybe you need to set/check/increase the QSurfaceFormat::depthSize property (I've no idea what the default is).

          If your z-buffer precision is as good as it can be, glPolygonOffset and/or controlling draw-order are next lines of defence against z-fighting.

          I seem to remember the old forum allowed image upload; but maybe I'm thinking of the Jira (bugtracker). The markdown formatting here would let you link to a URL hosted elsewhere though (and maybe include it inline).

          1 Reply Last reply
          0

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved