- Home /
texture alpha channel not importing
Hi,
I made an alpha texture per the directions at http://unity3d.com/support/documentation/Manual/HOWTO-alphamaps.html. When I tried to import the texture, I used Assets/Import New Asset and navigated to my PSD file (which had an alpha channel), but after the texture was imported, it did not have an alpha channel. Am I doing something wrong in the import? Thanks.
Zaffer
The first thing I would at is that in unity the import settings show a format with an alpha channel. Basically any format with an a somewhere in it i.e. RBGA, ARGB
Answer by Jessy · Nov 21, 2010 at 04:57 AM
There is some hint of transparency somewhere in your RGB layer. When this exists, then Unity will import the transparency of the file in, as an alpha channel, instead of the alpha you explicitly set in the Channels panel. I don't know of any tool to detect where this is occurring, and it's easy to have it happen in the normal process of creating a PSD. The typical thing to do, to fix your problem, is to just create a solid layer at the bottom of the stack. Personally, I use a Solid Color fill layer, because it doesn't require a whole image worth of pixels, like a regular layer would, so the file size of the PSD is not bloated.
You're a lifesaver, for some reason i couldnt find anything about this in the unity documentation.
stumbled over this topic. very very helpful answer! thanks a lot!
This didn't work for me, even after creating a Solid Color Fill layer at the bottom of the stack. I ended up having to flatten the image in order for it to work. $$anonymous$$aybe it's my version of Photoshop (CS).
thank you that worked! Couldn't think of it myself! Thumbed up
Answer by hav_ngs_ru · Jul 13, 2014 at 08:39 PM
I see that the post is old, but I had such problem just now.
As I understood, Unity searches at leat one fully-transparent pixel in picture, and if it find it - PSD transparency imports instead alpha, else it will import PSD Alpha as is.
So if you want to import Alpha channel - do as Jessy said, and if you want to use PSD transparency - ensure to have at least one FULLY transparent pixel in your PSD.
Answer by Ansemsnobody · Feb 26, 2019 at 05:31 PM
Just to post again about this issue; If you still have trouble, use the trim option in Photoshop and then change your texture import settings to Advanced>Non Power of 2>ToNearest. Not sure why this happens, but that should fix it if you tried everything else.
Your answer
Follow this Question
Related Questions
Alpha channeled grass 0 Answers
what is the psd filter or effect applied to grass textures to bleed around the edges? 2 Answers
Slowdown Unusual- Part2 0 Answers
How do i make it all the grass on my terrain visable? 3 Answers
Fading grass? 0 Answers