Game Development Community

Maya2DTS animation problem...

by coxosclassic · in Artist Corner · 01/16/2007 (12:54 pm) · 5 replies

Hi everyone!

Im following dannyngan "Maya2DTS Exporter Basic Tutorials". Everything went fine until I tried to export an animated character(char.mb) with 2 cycles only (char_walk.mb and char_idle.mb). I've done the rig with Ik's, I used shapes as controllers for the Iks and bones through constrains... Done the Export Shape ( char.dts file) and done the Export Sequences (char_walk.dsq and char_idle.dsq files). I created the .cs file also.

When I try to view the model and animations in STP, nothing shows up...(?)

am I missing something here? Do I have to create any .cfg file? Is there any problem with the rig that I made?

P.S - I have included the entire rig in base01 node. (character model and bounds outside in the rootScene node), but neither ways works...

Tkx!

#1
01/16/2007 (1:57 pm)
Does the model load for you at all in Showtool? If it does, then something's up when you export the animations. Can you post your .cs file? And yes.. you should create a .cfg file for when you are exporting the animations so the exporter knows which bones to include / exclude. Might want to post screenshots of your rig as well.

Cheers,
Fredrik S
#2
01/16/2007 (3:52 pm)
Hey Affectworks! tkx for the reply,

The model doesn't even show up in STP... I thought it could be the texture, but is a simple .jpg file 64x64 and it is in the same root as the .dts and .dsq files.

This is the shape, this is the rig (NURBS circles are the shapes controllers) and this is the layout in hypergraph...


this is the 'char.cs' file:

datablock TSShapeConstructor(char01DTS) {
	
	baseShape = "./char01/char.dts";

	sequence0 = "./char01/char_walk.dsq walk";

	sequence1 = "./char01/char_idle.dsq idle";
};

each .dsq file has a 'Sequence_' node respectivly in the hypergraph (rootScene node)

Im reading (in depth) the maya2DTS reference guide to be shure about the .cfg file, but if anyone knows what the problem is...

tkx!!
#3
01/17/2007 (12:26 pm)
You have to name your mesh with a trailing number. Rename your character "char2" without quotes and you should be fine.

Let me know if this works.
Fredrik S
#4
01/17/2007 (5:23 pm)
Yo!

Well aparently that was a problem too... apart that I had all the names wrong. My character should be named charShape1 instead of just char... and another problem was the name that I gave to the detail node (detail2 instead of detail1)... And definitly the "char2" instead of "char01" tip that you gave me!

The model shows up fine in STP, but I think there is a problem with the animations... shouldnt it load the .dsq files as I load the .dst file? there are no animations when I load the char.dts, but when I load each of the .dsq files (char_walk.dsq and vhar_idle.dsq) the animations run perfeclty...

Well the most important is done! thanks for your tip I can now load my model with a full rig into STP, tomorrow Ill try to sort out the animations problem... now its time to sleep!

Thanks a LOT with your tips! Tomorrow i will post again if I cant load the .dts file with animations...
#5
01/18/2007 (6:26 am)
Well... STP is supposed to load the animations listed in the .cs file, but I just never bother with it (honestly.. never got it to work right) so I just load the individual animation that I want to test manually.

The name of the mesh object really doesn't matter. What matters is that the detail numbers are the same on both the mesh and the detail marker.

Glad I could help.

Btw.. I love the style of cartoony characters you got going on your homepage. Very cool stuff.

Fredrik S