Need help with fbx animation for trees.
by Thomas Champion · in Artist Corner · 11/20/2012 (11:01 am) · 8 replies
What im trying to do is add the animations for the trees.
I know you dont exec a fbx file. i have the tree in misc catagory and can put it in the game.
so the tree is there, animation still missing.I want all my trees there, that i hand place in the game.
How do i make the fbx animations work with this code?
/////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////
exec("./art/afx/shapes/trees/TallPine/fbx/Sequia_02.fbx");
should this be amination = ("./art/afx/shapes/trees/TallPine/fbx/Sequia_02.fbx"); ?
datablock StaticShapeData(Sequia02)
{
category = "Misc";
shapeFile = "art/afx/shapes/trees/TallPine/Sequia_02.dae";
};
function Sequia02::onAdd(%this,%obj)
{
// %obj is the object being added to the world
// with %this datablock. Start up a thread on the
// new object. Since the wave sequence is cyclic
// this animation will run continously.
%obj.playThread(0,"Sequia02");
}
function StaticShapeData::create(%block)
{
%obj = new StaticShape()
{
dataBlock = %block;
};
return(%obj);
}
I know you dont exec a fbx file. i have the tree in misc catagory and can put it in the game.
so the tree is there, animation still missing.I want all my trees there, that i hand place in the game.
How do i make the fbx animations work with this code?
/////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////
exec("./art/afx/shapes/trees/TallPine/fbx/Sequia_02.fbx");
should this be amination = ("./art/afx/shapes/trees/TallPine/fbx/Sequia_02.fbx"); ?
datablock StaticShapeData(Sequia02)
{
category = "Misc";
shapeFile = "art/afx/shapes/trees/TallPine/Sequia_02.dae";
};
function Sequia02::onAdd(%this,%obj)
{
// %obj is the object being added to the world
// with %this datablock. Start up a thread on the
// new object. Since the wave sequence is cyclic
// this animation will run continously.
%obj.playThread(0,"Sequia02");
}
function StaticShapeData::create(%block)
{
%obj = new StaticShape()
{
dataBlock = %block;
};
return(%obj);
}
#2
I will look deeper into the documentation.
Thanks Steve
Thomas Champion
11/20/2012 (11:36 am)
thats the problem im having, i have the ambient checked and even placed a wind emiter and scaled the circle to surround all the trees in a small area. ron said in his documentation they were set up to work with torque's wind.I will look deeper into the documentation.
Thanks Steve
Thomas Champion
#3
The Trees in the Conifer pack are all designed to use the wind emitter in Torque 3D for the ambient animations. This means they are vertex painted in order to take advantage of this feature. It also means that you need to add your trees to the forest editor, since that is the only way they have access to the wind emitter.
Check out the demo level that shipped with the pack and you will get an idea of how they are used. Also, the FBX files were provided for use with other engines. In T3D you only need the .DAE versions. Again, suggest you look at the demo level and hopefully it will become clear as to how to use it to your best advantage.
Ron
11/20/2012 (11:38 am)
Thomas,The Trees in the Conifer pack are all designed to use the wind emitter in Torque 3D for the ambient animations. This means they are vertex painted in order to take advantage of this feature. It also means that you need to add your trees to the forest editor, since that is the only way they have access to the wind emitter.
Check out the demo level that shipped with the pack and you will get an idea of how they are used. Also, the FBX files were provided for use with other engines. In T3D you only need the .DAE versions. Again, suggest you look at the demo level and hopefully it will become clear as to how to use it to your best advantage.
Ron
#4
I don't like using it because it puts trees on paths i make and there is no way to select one tree and delete it from the path.
I don't use the path editor, but i guess i will have to if i can keep the tree off of it.
I will play around with it and see what i can do.
Thank you Ron
Thomas Champion.
EDIT: Ok i see the forest editor has changed.Guess i need to drop all my old perceptions and start exploring alot of the new additions to 1.2.
My bad.
11/20/2012 (11:49 am)
ok, will do Ron. Did not know i had to use the forest editor.I don't like using it because it puts trees on paths i make and there is no way to select one tree and delete it from the path.
I don't use the path editor, but i guess i will have to if i can keep the tree off of it.
I will play around with it and see what i can do.
Thank you Ron
Thomas Champion.
EDIT: Ok i see the forest editor has changed.Guess i need to drop all my old perceptions and start exploring alot of the new additions to 1.2.
My bad.
#5
You can add individual trees using the forest editor. Just make your brush size 1. This will give you more control. Also, you can delete individual trees using the eraser tool. Suggest you read up on the forest editor a bit:
docs.garagegames.com/torque-3d/official/index.html?content/documentation/World%2...
Its a very powerful tool if you know how to use it. Good luck and no worries, that's why we are here :-)
Ron
11/20/2012 (1:46 pm)
Thomas,You can add individual trees using the forest editor. Just make your brush size 1. This will give you more control. Also, you can delete individual trees using the eraser tool. Suggest you read up on the forest editor a bit:
docs.garagegames.com/torque-3d/official/index.html?content/documentation/World%2...
Its a very powerful tool if you know how to use it. Good luck and no worries, that's why we are here :-)
Ron
#6
11/20/2012 (8:37 pm)
You can also select individual trees and scale/rotate and move them. Individually.
#7
Love the tree's in the conefir forest pack they look great.
Here is a small preview of one area i almost have done and another at the end im starting on. You can put it on 780p hd.fixed my spider web problem to.
11/20/2012 (8:51 pm)
I got the bush's to animate, still cant get the trees to.I will be able to soon. Just have to be patient and reread a lot of stuff and trial and error.Love the tree's in the conefir forest pack they look great.
Here is a small preview of one area i almost have done and another at the end im starting on. You can put it on 780p hd.fixed my spider web problem to.
Associate Steve Acaster
[YorkshireRifles.com]
FBX animation is meaningless to an engine which cannot read FBX.
All TsStatics have a checkbox on placement for playing their "ambient" animation exported inside the DAE file with the model.
Animating a tree seems somewhat pointless when the WindEmitter exists to power "wind animations" through the shader system.
This stuff is covered in the documentation.