Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Render Image Anti-aliasing  (Read 2097 times)

0 Members and 1 Guest are viewing this topic.

lolz123

  • Sr. Member
  • ****
  • Posts: 260
    • View Profile
Render Image Anti-aliasing
« 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!
Have you heard about the new Cray super computer?  It’s so fast, it executes an infinite loop in 6 seconds.

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
Render Image Anti-aliasing
« Reply #1 on: August 17, 2011, 07:58:30 am »
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.
Laurent Gomila - SFML developer

lolz123

  • Sr. Member
  • ****
  • Posts: 260
    • View Profile
Render Image Anti-aliasing
« Reply #2 on: August 17, 2011, 04:34:43 pm »
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.
Have you heard about the new Cray super computer?  It’s so fast, it executes an infinite loop in 6 seconds.

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
Render Image Anti-aliasing
« Reply #3 on: August 17, 2011, 09:11:24 pm »
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.
Laurent Gomila - SFML developer