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!

This entry was posted in Tools. Bookmark the permalink.

6 Responses to Removing White Halos in Transparent Textures

  1. Burton says:

    Thanks for these great resources!

  2. TrickyFishy says:

    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!

  3. Jörg says:

    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 …

  4. Adam says:

    Rad thanks! I had always created an action to do the overfill, but this looks like it should produce a better result.

  5. Jeremy says:

    HUGE thanks on this post! We’re in the final phase of releasing our first iphone game (*ahem* B City Rampage, look out for it soon) and we’re noticing some terrible issues with sprites showing an outline of pixels behind the sprite, cause by alpha issues.

    Writing out transparent PNGs didn’t solve the issue, but this certainly did! Being a perfectionist it was a relief to see the issue fixed ^_^

  6. TornadoTwins says:

    @Jorg: Yeah, I always use PNG’s also, not much problems with halos.
    True, one more step in workflow, but using PSD’s in Unity makes the project folder huge anway… so it’s just what you prefer.

    Really great tips though! Wouldn’t have figured this out myself! Amazing!


Comments are closed.