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

Author Topic: Hard borders and sprite anti-aliasing  (Read 3098 times)

0 Members and 1 Guest are viewing this topic.

Lagiv

  • Newbie
  • *
  • Posts: 3
    • View Profile
Hard borders and sprite anti-aliasing
« on: January 22, 2009, 12:12:47 pm »


In the A picture above, you can see that the left side of the sprite has a hard border. For example Gosu has an option to disable and enable this hard border. Maybe a similar option could be added to SFML? Altough it is not very important, because the hard border can be evaded by adding a one pixel margin around the sprite.

In the picture B, I have 8 levels of anti-aliasing enabled, but only the left side of sprite is anti-aliased (the same part that has the hard borded in picture A). Is it somehow possible to get anti-alisiang inside the sprite? I would like to use the crisp look of SetSmooth(false), but have the aliasing toned down. Maybe some other texture filtering mode would work for me, if AA is out of the question?

Olof Larsson

  • Newbie
  • *
  • Posts: 4
    • View Profile
Hard borders and sprite anti-aliasing
« Reply #1 on: May 08, 2010, 11:59:38 pm »
I wonder to.
How to draw a sprite onto a render window and get anti aliasing?