SFML community forums

Help => Graphics => Topic started by: Lagiv on January 22, 2009, 12:12:47 pm

Title: Hard borders and sprite anti-aliasing
Post by: Lagiv on January 22, 2009, 12:12:47 pm
(http://img237.imageshack.us/img237/1574/24534795gr3.png)

In the A picture above, you can see that the left side of the sprite has a hard border. For example Gosu (http://code.google.com/p/gosu/wiki/BasicConcepts) 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?
Title: Hard borders and sprite anti-aliasing
Post by: Olof Larsson on May 08, 2010, 11:59:38 pm
I wonder to.
How to draw a sprite onto a render window and get anti aliasing?