Removing White Halos in Transparent Textures
Unity allows native importing of PSD textures, which is awesome for workflow and iteration speeds. However, transparent textures frequently exhibit white “halos” around objects. This issue stems from Photoshop itself–fully transparent pixels are usually white in color, which means texture sampling will pick up these white pixels when your texture is scaled down.
Here is an automated solution to this problem (you’ll probably want to watch full-size on Vimeo):
You’ll need Flaming Pear’s free Solidify plugin and this set of Photoshop Actions. Enjoy!
January 25th, 2010 at 1:52 am
Thanks for these great resources!
January 31st, 2010 at 11:15 am
Guys - I just found your blog and its very useful and interesting! I hope you’ll continue to add more tips.
Thanks for sharing the info on the plugin and how to eliminate the halo. It will save me tons of time!
At the moment I’m looking for tips on how to do toon shading. I’ve tried applying the toon shaders to simple objects like spheres and it works but on my character it just turns them mostly black. *shrug* I’ll keep looking.
Keep up the great work and thanks for being so open!
February 17th, 2010 at 7:54 am
Another perhaps even easier option is to write out transparent PNGs from Photoshop. Photoshop will internally “Solidify” your transparent layer so there won’t be any white edges. Disadvantage of course: workflow goes plus one file …