Game Development Community

DTS animation system

by Grant McNeil · in Torque Game Engine · 07/07/2002 (3:12 pm) · 9 replies

Has anyone devoleped an DTS animation system where it loads the DTS file for the animation requested?

any links or info on the topic would help.


thanks,

-Grant McNeil

#1
07/07/2002 (3:44 pm)
I'm not exactly sure what your asking for but in any case this is already in the Engine.

The DTS shapes have corresponding dsq files. These DSQ files are the bone animations for that DTS shape. This how animation blending is achieved.
#2
07/07/2002 (4:02 pm)
I relize that, but you cannot export dsq files from milkshape 3d. so, i was wondering how you would script loading a seperate model, which has a different animation in it, as the player. i was thinking of doing it like this:

function serverCmdModel(%client)
{
%client.player.shapeFile= "~/data/shapes/player/jump.dts"
echo("working");
}

but whenever I call that function, it outputs "working", but doesn't change the player model.

any suggestions?
#3
07/07/2002 (4:15 pm)
I'm pretty sure you can't change the shape file "on-the-fly"... it's only loaded at startup, I think... what exactly are you trying to do? you can add some more animations to your MS file and call these from script with %obj.playThread(...) or %obj.setActionThread(%animationName); ...
#4
07/07/2002 (4:19 pm)
How do you add several animations in one ms file?

-Grant McNeil
#5
07/07/2002 (4:23 pm)
Use the "Material List" in MS as "animation channels", like this:
seq: root=1-4, fps=1, cyclic 
seq: run=40-57, fps=24, cyclic 
seq: back=20-38, fps=18, cyclic 
seq: side=60-72, fps=18, cyclic 
seq: jump=...
And search the forums for Milkshape, plenty of stuff there...
#6
07/07/2002 (5:12 pm)
How do you do that? I cant seem to find any information on the forums, how do you use the material list as animation channels?


-Grant McNeil
#7
07/07/2002 (5:49 pm)
Thanks Stefan - you just enlightened me in the ways of animation in Torque (about which I know nothing!).
#9
07/08/2002 (11:04 pm)
I think if someone made a very simple model with the movemens etc for it to have people could see how it works in MilkShape. Then people can add more movements and put there own shape in. I'm sure many people would be very happy.

I would do this but, I'm not sure how to do the animations myself.

Edward