- Home /
How to fix smooth edges on sprites?
Hi, Im having problems getting my sprites with transparent backgrounds to have smooth edges. It seems as if the semi-transparent pixels near the borders have been converted to a full alpha color and makes the borders of the sprites look wierd.
Here is an example:
Original PNG file:
Screen shot from inside unity:
Is there a way to fix this? is there a problem with my PNG files? any help would be great!
PD:
Don´t know why but this PNG file looks fine in game:
Answer by dannyskim · Sep 25, 2012 at 12:54 AM
Please do a more thorough search next time.
Here is a thread that is pretty in depth on why your problem happens, and how to solve it.
http://forum.unity3d.com/threads/2181-Photoshop-how-to-perfect-fringeless-alpha-perfect-edgelines
Hi $$anonymous$$ thanks for your answer but I did do a thorough search and I found this as well but it doesnt work for me.
Have you tried setting the wrap mode of the texture to clamp? If that doesn't work, you may want to import the files as .PSD, or use the .TGA format ins$$anonymous$$d. I have a lot less issues with .TGA
Yes I tried with PSD but I havent tried with TGA I will give that a go thanks!