Alpha Leaves

Hello,

Does anyone know what format my image must be in for it to show up as Alpha in Unity?

I currently have a tree with leaves and I want the area with no leaves to show up Alpha/Clear. I have tried .targa and .png file formats with the background transparent. I even tried the Unity manual’s suggestion by using the Photoshop plugin…the problem is, the tutorial is not very detailed and leaves a lot to the imagination.

Any ideas? All help and information is greatly appreciated! Thank you!

–Velk

Right click on the file in Unity and go to “import options”. Make sure you’ve set a format that includes the alpha channel. Then make sure you’re using a Unity shader that supports the alpha channel. I use .PNG and .PSD files all the time, it works fine.

Thanks for the info, unfortunately I still can’t get it to work =(

No clue whats going on, I’ve done this procedure at least 10-20 times before with tree’s and had zero problems…

Any ideas?

Did you check the alpha channel in Unity? (There’s a check box in the inspector.) Does the leaf’s alpha show properly? Did you try applying the shader to a simple test object? Did it display properly?

I’m guessing you’ve missed something simple, so the best thing to do is to test things step by step to eliminate the obvious possibilities.

In Photoshop, with transparency on for the base layer. Add your tree images to another layer, cut the unwanted parts out and save as a .psd.

http://forum.unity3d.com/viewtopic.php?t=10020

When you assign the texture to begin with, add the same UV to the transparency channel @ 100% before exporting.

In Unity try the particle shaders or import the Terrain Demo Assets/ Trees Ambient Occlusion package ( which you just made) and set your trees to ambient occlusion.

m