Game Development Community

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.

#1
10/19/2006 (3:00 pm)
I've had the same problem. I redo the material.cs file over and over again until I'm dizzy. I think for the most part, the tree model has to be exported to the TSE Exporter PLUS. There is an exporter for Milkshape in the TDN library. That area gets confusing too, but you can do a search for it in there.

-Andy