Has anyone seen a constant slight white edge around all their transparent sprites? Is this some other compression issue?
Probably you’re relying on transparency instead of using alpha channels. There’s a bunch of discussion on this if you do a search.
–Eric
Yes, I am using transparency. Are you suggesting that the basic feature of material transparency in unity does not function as documented? Could you assist a little further by providing what topic you are referring to that I search on?
I am not a filter programmer and dont know the first thing about them.
Are you using .psd? This always adds a white outline around it’s transparent textures (Unless you use an alpha channel). The best thing to do is to export it as a .png file. PNG’s don’t seem to add the white outline.
Here is one topic. As mentioned there, it’s an issue that’s not limited to Unity; if you haven’t defined the color of the pixels, they have to default to something, which in the case of Photoshop files is white. If you use an alpha channel instead of transparency, then you get to control the color of all pixels, so you avoid the issue. You don’t have to program any filters. If you use .png, you still have the same issue, but you can choose the matte color instead of white. Also with .png files you can’t use layers, so I’d recommend using an alpha channel. It’s an extra step, but overall it’s the easiest and best solution.
–Eric
Here’s a link that should clear things up for you:
Thanks a lot for this! The white outline artifacts were driving me crazy and I wasn’t aware using PSD files would be problematic.
I also want to mention for anyone else that may stumble upon this, there is actually a feature in the export setting specifically for PSD files: “Remove Matte (PSD)”.
This gave me the same quality result as exporting a PSD file to a PNG file with less effort.
