Game Development Community

DSQ Export

by David Mathews · in Torque Game Engine · 08/17/2005 (9:22 pm) · 5 replies

I'm trying to get DSQ export enabled in my exporter.
I am creating the entire shape and mesh, just like I do when I export to dts (so I didn;t miss anything), then calling
shape->SaveSequences.
The Save function gives me a loadable and runable dts, but the SaveSequences gives me a dsq file that crashes the Show mod every time.
What else is required to export just an animation?\

Thanks!

#1
08/18/2005 (12:24 pm)
Does it crash in any particular way?
#2
08/18/2005 (12:28 pm)
Did you follow the smd labs tutorial?

http://torque.smdlabs.com/3dsmaxAnimationSetup.htm
#3
08/18/2005 (2:16 pm)
@David: saveSequences from dtsSDK works fine for me.

Here's a snippet of the setup for it:

std::ofstream dsqfile (file_name, std::ios::binary | std::ios::trunc | std::ios::out) ;
if (!dsqfile) {
printf("didn't work!\n");
} else {
saveSequences(dsqfile);
}

You might have missed something in your setup, it's very touchy. (For example, if you have any groundTranslations, you have to have the same number of groundRotations, or it kills everything.)

Have you tried analyzing your bad dsq in a hex viewer, and comparing it to a good dsq? I've had to do that a lot.
#4
08/19/2005 (9:53 pm)
I finally have the format 24 dsq output working with the Show mod, along with included sequences in the dts file, but I can't get any sequences, built in or otherwise to come up in Show Tool Pro.

Also my new format 25 with morphs works fine when built into the dts, but when exported separately they crash SHow mod on load.

Ben, where are separate dsq loads done in the engine code? I've been trying to find it. I assume they use the same load sequence in ShapeOldRead, but where is th header info matched up to the Shape?

I realize I need to add the morph match code in the dsq header load code.

I can't figure out why the SHow Tool Pro can't load the 24 format (I know it can;t load the 25 format - but an error would be better than just crashing)
#5
08/20/2005 (3:21 pm)
See other thread for reply!