SFML community forums

Help => Graphics => Topic started by: Marukyu on January 03, 2012, 10:01:14 pm

Title: Antialiasing via ContextSettings not working on Linux
Post by: Marukyu on January 03, 2012, 10:01:14 pm
Hi,

the project I am working on uses vertex arrays and shapes a lot, but they aren't drawn with antialiasing, which makes them look quite ugly when they aren't made of axis-aligned lines. When I set ContextSettings' AntialisingLevel to 2 or 4 and create a RenderWindow with that, GetSettings().AntialisingLevel returns 0. I'm using CrunchBang Linux 10 and a rather recent version of SFML2. glxinfo and experience with various games on Linux tell me that my NVIDIA Linux drivers support antialiasing/multisampling up to level 4.
I have found something that might be related to the problem I'm having, but the thread is already over half a year old and the issue didn't seem to be solved yet: http://www.sfml-dev.org/forum/viewtopic.php?t=4462
Laurent described the situation as complicated, but the ability to enforce antialiasing through some function would be nice to have, though I have no idea how GLX, X11, Contexts and stuff like this work as I never worked with anything lying below SFML, so I might be underestimating the complexity in implementating something like this.

Any kind of help with or solution to this problem would be greatly appreciated.
Title: Antialiasing via ContextSettings not working on Linux
Post by: Laurent on January 03, 2012, 10:17:38 pm
It is indeed related to the issue that you found, and there's still no simple solution to the problem, as described in the task tracker issue.