SFML community forums

Help => Graphics => Topic started by: Dlaor on December 25, 2010, 11:34:06 pm

Title: Ugly edges with smoothing enabled
Post by: Dlaor on December 25, 2010, 11:34:06 pm
I'm making my first game using SFML but I've been getting some bugs with sprites. The images get an ugly edge at the sides when smoothing is enabled. Here's a picture which demonstrates the problem.
(http://anyhub.net/file/1gyk-tiling_ore_desktop.png)
As you can see, the ball on the left has an ugly white edge at the top and at the side. The one on the right is the desirable result.

I know that setting smooth to false fixes it, but I still want to have smooth graphics. How do I fix this? (using SFML 1.6)
Title: :(
Post by: Stew_822 on January 01, 2011, 11:22:54 pm
As far as I'm aware, those are the only two options available to you :(

But you never know, someone smarter than me might come along and find a fix :)

Could you possibly smooth your graphics before even loading them into your game? ie. do it in the image editor?
Title: Ugly edges with smoothing enabled
Post by: Groogy on January 02, 2011, 02:45:07 pm
The Edge comes from the image border right? Just have the image 10 x 10 bigger move it, smooth and then move back and resize or something like that. Though easier would be to implement a gaussial blur shader and use that.