I would like to use a textures alpha channel for something other than transparency. But when I import it as a 32 bit tga, it automatically uses what I have in the alpha channel, in this case an ambient occlusion render, as a transparency mask. Is there some sort of setting I need to click when I import a texture?
Replies
I also worked a bit on trying to get ambient occlusion for textures in UDK however i have not been very sucessfull.
However there is this guide you could follow to get ambient occlusion for your level at least "The tutorial"
Not sure how much of help i can be but at least make sure you unchecked the alpha to opacity mask and it should be good.
As long as your using a 32 bit texture it's going to be transparent in the texture preview. You can toggle the Alpha channel on and off at the top of the window with the black and white circle. Have you tried making a material with that texture? That's where the magic happens.
Using it on a material. Hooking the alpha channel into transparency works as expected. Using it's RGB channels is discolored red as I stated above.
You can actually see the red near where something is transparent.
Default texture import settings, and material settings. Try using the default ones and see if it works.
Still doesn't work? Then you got yourself a problim.
If it works with default settings, but not with the custom import settings you specified... then read up on them! Should say something about em somewhere, or just leave em be for now
Also, generally, I'd suggest keeping the AO in a seperate texture, and then decrease the size of it. As most of the time it really doesn't need to be as big as the diffuse. (At least I think that saves on performance, but if not, I wouldn't mind someone proving me wrong!)
And wth is up with that captcha?!
Cheers
UDK does not expect it to be for transparency at all, it only shows it in the texture window for preview purposes and you can turn off the display of it.
On your materials/shaders and meshes it will show how you want/made it.
If you're using a material someone else made and are plugging the texture in there then it is set in that material and you'd have to either change it or make a new one.
So my plan is to keep diffuse and AO in 2 different textures. Since diffuse is nothing but simple colors, I can make it incredibly small.
The AO, specular, and masks will be put into one of those consolidation textures.