SFML community forums

Help => Graphics => Topic started by: ath88 on July 20, 2014, 12:52:48 pm

Title: Window Antialiasing on Linux
Post by: ath88 on July 20, 2014, 12:52:48 pm
Hi there,

I have been looking around and i found a few clues that window anti-aliasing on Linux is broken. All of the resources are fairly old though, from 2011 and 2012, respectively.

Will this be on the drawing board anytime soon? Or is it already fixed?

I noticed some fix mentioned here https://github.com/SFML/SFML/issues/35 (https://github.com/SFML/SFML/issues/35), but i fail to comprehend the solution.

Regards, ath88

Edit: I have been trying an FXAA shader, but i can't make it work with primitive shapes (which is what i am using, no textures).
Title: Re: Window Antialiasing on Linux
Post by: zsbzsb on July 20, 2014, 03:36:03 pm
If I had to guess, I would say read this.
https://github.com/SFML/SFML/issues/664
Title: Re: Window Antialiasing on Linux
Post by: ath88 on July 20, 2014, 03:48:53 pm
If I had to guess, I would say read this.
https://github.com/SFML/SFML/issues/664

Thanks, but to no avail. Setting the depthBit to 32 changes nothing. Still no antialiasing, even though antialiasingLevel is set to 8.
Title: Re: Window Antialiasing on Linux
Post by: binary1248 on July 20, 2014, 03:53:05 pm
Show us the full output of glxinfo. Preferably in code tags.
Title: Re: Window Antialiasing on Linux
Post by: ath88 on July 20, 2014, 03:57:07 pm
Show us the full output of glxinfo. Preferably in code tags.

Alright. I am not sure how to interpret this info. Hope this is correct.

(click to show/hide)
Title: Re: Window Antialiasing on Linux
Post by: Laurent on July 20, 2014, 04:20:42 pm
Your graphics driver supports no visual with antialiasing (see the last two columns, there are only zeroes), which is weird since it supports the GLX_ARB_multisample extension.
Title: Re: Window Antialiasing on Linux
Post by: ath88 on July 20, 2014, 04:27:03 pm
Your graphics driver supports no visual with antialiasing (see the last two columns, there are only zeroes), which is weird since it supports the GLX_ARB_multisample extension.

My laptop has a Nvidia Optimus graphicscard (one small internal, and another bigger one), and i can switch to use the bigger card with the Bumblebee server. I realised i should be running glxinfo with the bigger card. Here is the, hopefully better, information;

(click to show/hide)
Title: Re: Window Antialiasing on Linux
Post by: ath88 on July 29, 2014, 01:24:17 pm
So, any ideas as to why my anti aliasing does not work? The same code, when run on Windows, works fine.
Title: Re: Window Antialiasing on Linux
Post by: Laurent on July 29, 2014, 01:33:26 pm
Are you sure that your application runs on the "bigger" graphics card?