SFML community forums
Help => Graphics => Topic started by: N1ghtly on February 22, 2012, 09:42:03 am
-
I was working on my stats screen for my game, just prototyping it but when I draw certain sprites it looks like they're "smeared" a bit.
(http://i44.tinypic.com/24vjt3c.png)
Any ideas?
-
Could you elaborate on what "smeared" means? :D
-
Haha I guess it's a word I made up :P
Look at the + and - circle for example :)
-
Look at the + and - circle for example
Looks like bad alpha around borders in the original image.
-
That's not it because in-game they work perfectly :/
-
What's the difference between the menu and the game?
Maybe it's because the background is different, it shows more on black.
-
It can't be the sprites themselves, they're crisp and clean. :(
-
Can you upload them?
-
sure!
(http://i40.tinypic.com/30ky8es.png)
(http://i41.tinypic.com/j6mkbq.png)
(http://i41.tinypic.com/kb5300.png)
-
Have you tried to disable smoothing (image.SetSmooth(false))?
-
I thought it was disabled on default?
-
By default it is disabled in SFML 2, but enabled in SFML 1.6.
-
I'm using SFML 2 so it's disabled :)
-
Can you write a complete and minimal code that reproduces the problem, so that I can test it?
-
I was able to fix the problem :)
I used one temporary sprite to load them all into a vector and I forgot to pass true to the SetTexture function each time (to reset the drawing rect).