Recommended Posts

I need help. I fail to get the Alpha Texture Blending to work. When I apply it to an object, nothing happens. Except, all my Alpha Channel materials become Alpha X-Ray. Please show me some codes. Thanks.

After this, when I change the diffuse alpha value of the texture material, nothing happens. Except, when I set the diffuse alpha value to 0, the object disappears. Not only that, whenever I enable the ALPHABLENDENALBE, once working semi-transparent non-texture materials turn solid or x-ray.

why on earth did you do that? You're the only one using an alpha test bro. That said given what you set it to it probably isn't doing anything, but I'd remove it anyways.

quote:After this, when I change the diffuse alpha value of the texture material, nothing happens. Except, when I set the diffuse alpha value to 0, the object disappears. Not only that, whenever I enable the ALPHABLENDENALBE, once working semi-transparent non-texture materials turn solid or x-ray.

If something has an alpha value of 0 that means it's entirely transparent. Can't be seen. Passes all light thru. What are you changing the alpha values of the texture to, and how are you changing them? (are you loading in a tga file or something? what format did you load it in as?)

I''m using the .PNG format, and the diffuse alpha values are from 0.0 to 1.0. Unfortunately, at the moment, any value other than ZERO is 100% opaque. How am I changing them? Simply by calling the SetMaterial function. So, what am I doing wrong?