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
Forum Updated to NodeBB v4.3 + New Features

QT 5.4 OpenGL aliasing problem

Scheduled Pinned Locked Moved Game Development
qt 5.4openglqsurfaceformat
4 Posts 2 Posters 1.9k Views 1 Watching
  • 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 8 Aug 2015, 00:08 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);
    
    T 1 Reply Last reply 8 Aug 2015, 00:27
    0
    • E ed3D
      8 Aug 2015, 00:08

      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);
      
      T Offline
      T Offline
      timday
      wrote on 8 Aug 2015, 00:27 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 10 Aug 2015, 21:29 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
        • T Offline
          T Offline
          timday
          wrote on 15 Aug 2015, 15:07 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

          1/4

          8 Aug 2015, 00:08

          • Login

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