Trees in TSE?
by Andy Hodges · in Torque Game Engine Advanced · 10/02/2006 (5:09 pm) · 6 replies
Has anyone been successful on adding trees to TSE? NO matter what I do, I can't get the tree to see the material. I have a materials.cs file and still, it won't work. I have a tree2.dts and a tree2.png and I can't get it to work.
Any help is appreciated.
-Andy
Any help is appreciated.
-Andy
#2
10/02/2006 (5:41 pm)
Make sure you have translucent = true;
#3
-Andy
10/02/2006 (5:45 pm)
I'm actually using the trees from TGE, and put them in TSE. But I keep getting that orange warning "NO MATERIALS". Created the materials.cs, but no go.-Andy
#4
10/02/2006 (5:51 pm)
new Material(crazyawesomesupertree)
{
baseTex[0] = "yourtreeimage";
translucent = true;
};
#5
1.) "demo/data/terrains/trees/tree2.dts" and "demo/data/terrains/trees/tree2.png" both reside.
2.) In the world editor creator, I clicked on "tree2" and positioned a spot for the tree. The tree is orange with "NO MATERIALS" warning.
3.) I then created a "materials.cs" file in the "demo/data/terrains/trees" directory and added the following:
new Material(tree2) {
baseTex[0] = "data/terrains/trees/tree2.png";
translucent = true;
}
It still shows orange with the warnings. Any idea what I'm doing wrong?
-Andy
10/02/2006 (6:07 pm)
I don't know what I'm doing wrong. Here's what I did.1.) "demo/data/terrains/trees/tree2.dts" and "demo/data/terrains/trees/tree2.png" both reside.
2.) In the world editor creator, I clicked on "tree2" and positioned a spot for the tree. The tree is orange with "NO MATERIALS" warning.
3.) I then created a "materials.cs" file in the "demo/data/terrains/trees" directory and added the following:
new Material(tree2) {
baseTex[0] = "data/terrains/trees/tree2.png";
translucent = true;
}
It still shows orange with the warnings. Any idea what I'm doing wrong?
-Andy
#6
10/06/2006 (1:59 am)
Just a stab in the dark, but I don't think you need the full path for baseTex[0]. Your materials.cs is in the same folder so "tree2.png" should work.
Torque Owner Tim Holt