Game Development Community

Tranparrency problems

by arteria3d · in Torque Game Engine Advanced · 09/14/2006 (11:36 am) · 3 replies

Hi,

I have a tree with the leaves using alpha transparency. They work in tge fine. Im usig the following script for the material:

new Material(palm1)
{
baseTex[0] = "palm2";
};

new Material(palm1_2)
{
baseTex[0] = "palm1_2";
translucent[0] = true;
};





new Material(trunk)
{
baseTex[0] = "pm bark 2";
};

new Material(bark)
{
baseTex[0] = "bark";
translucent[0] = false;
};



The textures are showing, but the leafs are not utilising transparency? Why would this be

Steve

About the author

Owner of uk based Ltd company ArteriaMediaLtd. with a trading name of Arteria3d Website;arteria3d.com


#1
09/15/2006 (3:51 am)
Anyone help please?

Steve
#2
09/15/2006 (7:04 am)
new Material(palm1_2)
{
baseTex[0] = "palm1_2";
[b]translucent = true;[/b]
};

The translucent flag is not an array. It affects the whole material.
#3
09/15/2006 (11:46 am)
Thankyou.

I really apreaciate you replying - it works fine

Cheers

Steve