QT 5.4 OpenGL aliasing problem
-
wrote on 8 Aug 2015, 00:08 last edited by
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);
-
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);
wrote on 8 Aug 2015, 00:27 last edited byI 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?
-
wrote on 10 Aug 2015, 21:29 last edited by
How do I post a screen shot?
Another name for the problems maybe Z fighting.
GPU HW is Quadro 5000.
-
wrote on 15 Aug 2015, 15:07 last edited by
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/4