Game Development Community

Help me understand this

by Shakey · in Torque 3D Professional · 11/15/2011 (10:28 pm) · 5 replies

Hi I am trying to use the dae2dts converter tool to extract individual animations, run forward, run backward, jump and shoot, well when I run the command line tool I am still getting the ambient animation sequence, maybe I am doing something wrong.

I take the model soldier_rigged.dae and run the tool just using this option --dsq, now it says
Quote:
--dsq
If set, all sequences in the shape will be saved to DSQ files (one for each sequence) instead of being embedded in the DTS file. The generated DTS file will not contain any animation sequences.

Am I right for thinking that all the sequences will get a individual dsq file, because that is not happening,

If I am doing something wrong can someone give me some pointers.

I am also getting this
Quote:
Warning: Creating cyclic animation clip to hold all animations


#1
11/15/2011 (11:34 pm)
sorry double post.
see below
#2
11/15/2011 (11:35 pm)
that is what i was looking for.
splitting single dsq file into several dsq files according to frame number.
i did not know that dae2dts can do that!!!
i will try it later.
but if it cannot do that than,
is there any other way or any script/plug-in to do that ?

and which one will be good for performance:
one single dsq file or splited dsq files for each animation sequence?
#3
11/16/2011 (5:46 am)
It won't split a .dsq file containing multiple sequences into separate sequences, but it is supposed to export the animations from the .dae file to separate .dsq files.

As far as performance, my first guess would be that loading the single file should be slightly faster than opening and reading multiple files just because you save overhead on dealing with files. Game performance should be the same since they're handled the same way in memory once loaded.
#4
11/16/2011 (8:41 am)
Richard and that is the problem I am having it is not exporting the animations from the .dae file to separate .dsq files, not unless by separate you mean just the one ambient clip, containing all the animations.
#5
11/16/2011 (6:50 pm)
Hi Shakey,

There are more details in the official collada docs, but basically, most collada exporters do not support the <animation_clip> element which splits up the animation timeline into separate sequences.

This limitation was one of the driving forces behind the Shape Editor tool, and the TSShapeConstructor (see TorqueScript reference for more details) enhancements made for T3D.

You should be able to use a TSShapeConstructor script to specify the name and start/end frames for each sequence within the single animation timeline. The dae2dts tool will read this script when it converts the DAE and should then generate a DSQ for each sequence you defined.

Make sure you specify the absolute path (in quotes if you have spaces in the path) to the dae when using the tool as it might not find the TSShapeConstructor script if you use a relative path. eg.

dae2dts --dsq "C:\Projects\T3D\blah\blah\soldier_rigged.DAE > log.txt 2>&1"

This also logs the output to a file so you can examine it if any problems occur.

tl;dr: Use a TSShapeConstructor script to split the animation timeline and dae2dts should generate a DSQ for each sequence, and use absolute paths where necessary.