Game Development Community

Unable to get translucency working.

by Milo D. Cooper · in Game Design and Creative Issues · 09/10/2007 (8:09 pm) · 1 replies

From http://www.garagegames.com/docs/tge/general/ch07s06.php:

"To make an object transparent, the texture on the object must have an alpha channel. The amount of transparency is controlled by the image's alpha channel. Applying an image file with an alpha channel to the Color attribute of a material will automatically apply the image's alpha channel to the same material's Transparency attribute. Both PNG and TGA files support alpha channels; JPG files do not support alpha channels."

I have had no success getting this working using either TGA or PNG files. My alpha channel is white for the areas meant to be opaque, and dark grey for the areas that should be nearly transparent.

I am using a CustomMaterial with the translucent attribute set to true, which erroneously results in a completely invisible texture. (As expected, setting the attribute to false results in the texture being rendered 100% opaque.)

Please advise. Thanks.


-- M. Cooper

#1
09/10/2007 (8:51 pm)
Since when does TGE support TGA? I think that document is mistaken.