Cannot display Trees correctly
by Chan Chi Kit · in Torque Game Engine Advanced · 10/19/2006 (10:37 am) · 1 replies
I have a tree model includes trunk and leaves. The trunk and leaves texture are in a SINGLE png file. I exported the tree model and it works fine in TGE.
However, although I have added the following scripts to the material.cs
new Material(tree)
{
baseTex[0] = "data/terrains/trees/tree.png";
translucent = true;
}
I cann't see the leaves in TSE... Only the trunk model and texture can be seen...
Anyone knows how to solve the problem...???
Do I need to export trunk and leaves separately...???
Thanks.
However, although I have added the following scripts to the material.cs
new Material(tree)
{
baseTex[0] = "data/terrains/trees/tree.png";
translucent = true;
}
I cann't see the leaves in TSE... Only the trunk model and texture can be seen...
Anyone knows how to solve the problem...???
Do I need to export trunk and leaves separately...???
Thanks.
Torque Owner Andy Hodges
-Andy