SFML community forums
Help => Graphics => Topic started by: lolz123 on August 17, 2011, 12:05:12 am
-
Hello everybody,
Does anybody know how to perform anti-aliasing on a render image?
I have found some older posts here about this issue, but they did not actually present a solution to this problem. I also found some threads about a newer OpenGL extension which permits FBO anti-aliasing, but I am not sure how to implement it. Also, I read that it is not possible at all when using a p-buffer.
I would appreciate any help you can offer!
-
The easiest solution is to leave anti-aliasing disabled and simply enable smoothing on the resulting texture.
Not exactly the same result, but can be close enough in most cases.
-
Thanks for the reply.
Unfortunately, enabling smoothing on the render image did not have much of an effect. I do not quite understand why one cannot anti-aliasing any render target besides the main window. Perhaps I can just render to the screen and then take a screenshot and use that. This seems like a pretty ugly workaround though.
-
Antialiasing a render texture is not impossible, it's just not implemented. Like you said, enabling it on a FBO is not well supported on older hardware, so I have no magic solution.