SFML community forums

Help => Graphics => Topic started by: haren on September 21, 2010, 10:52:27 pm

Title: Sprite and view artifact
Post by: haren on September 21, 2010, 10:52:27 pm
Hello there. I'm having an issue with views and sprites.

(http://imgur.com/L5yar.png)

As you can see from the picture, strange lines and boxes form around the sprites and flicker as I zoom in or out. I am using SFML svn, by the way. The issue goes away if I add an empty 1 pixel border around each sprite, but before I go ahead and do that for everything, I'd like to know if there is another solution. I have tried disabling smoothing on the image.
Title: Sprite and view artifact
Post by: Wollnashorn on September 22, 2010, 07:49:11 am
The empty pixel border is the best solution for that. ;)
Title: Sprite and view artifact
Post by: Mindiell on September 22, 2010, 08:45:50 am
Hello,

Did you try to use Image.SetSmooth(false) ?
Title: Sprite and view artifact
Post by: haren on September 22, 2010, 09:16:15 am
Mindielle: indeed I did

Thanks for the advice. I feel like if I'm not the only one with this problem, there should be a note in the docs.
Title: Sprite and view artifact
Post by: Laurent on September 22, 2010, 09:39:19 am
Are you using SFML 1 or SFML 2?
Title: Sprite and view artifact
Post by: haren on September 22, 2010, 09:43:02 am
downloaded the source from svn about a week ago. So I guess it would be 2.
Title: Sprite and view artifact
Post by: Laurent on September 22, 2010, 09:45:21 am
The SVN repository contains both versions:
- branches/sfml2 is SFML 2
- trunk is SFML 1
Title: Sprite and view artifact
Post by: haren on September 22, 2010, 09:47:18 am
I just checked, and it's 2.