SFML community forums
Help => Graphics => Topic started by: MahanGM on February 26, 2011, 07:40:57 pm
-
Hi. First thanks for your great library. I'm a new game developer in c++ and SFML. I'm professional in game making but with use of Visual Engines like Unity or UDK.
I wanna to ask why my sprite get a yellow border when I rotate it. I using a transparented PNG image and think I should use a bitmap image using keycolor to transparent the background but maybe there will be a better solution to do with the PNG one.
picture will tell all the issue:
(http://s29.aks98.com/files/14368251267225506279.png)
-
Try SetSmooth(false) on the image.
-
My guess would be that your image has those yellow lines to make it more antialiased, but they are unoticed when the line is straight vertical/horizontal. When you start rotating, those lines become pixelated, and more noticeable.
Hope that's it as i can't see any other way that would make a border like that only when rotating.
EDIT: ofc, or SetSmooth() as previously said :)
-
Thanks ! It works. But the image isn't smooth more longer. No matter ! thanks again. :)