Jump to content

Recommended Posts

Posted

Hi!


I’m working on an FPS project, and I’m trying to modify the base character from here: https://github.com/GarageGames/ContentPacks/tree/master/Actors/Soldier_T3D1.1


I want to change the sit animation from the current ball position into a normal pose of sitting in a chair. I’ve keyframed the model into this position in Maya. However, when I export this and put it in Torque, the sit and all other animations are changed back to the root pose. I've also had similar results when I tried to add a DAE with just the sitting animation.


My question is: what is the process for getting animations from Maya into the engine? Do they have to be separate DAEs, or should I export them all together with the model?

Posted

What exactly have you done? How are the animations saved? In the model itself or separate files?

Take a look here: https://github.com/GarageGames/ContentPacks/blob/master/Actors/Soldier_T3D1.1/soldier_rigged.cs


"%this.addSequence("ambient", "sitting", "1840", "1840");"

The first number is the start frame and the second number is the end frame, you have to specify them again if you changed and exported it again. Looks like the sitting animation is just one frame, if you added frames, you messed it up probably.

Posted

@Duion - Sometimes your internet tone is strangely hostile. Just thought you should know.


@wkosan- Does Maya import the FBX with animations intact?


Either way, try setting up a single animation going from root to sitting and see if you can get it working on the Shape Editor. Just point the existing sit animation to your .DAE.

  • 2 weeks later...
Posted

If you edited the animation in the DAE and didn't see a change to the animation in-game, I would suggest deleting the cached.dts file if you hadn't already.


It's supposed to regenerate when the DAE file is newer, but sometimes that doesn't take and manually deleting the cached file can correct it.


The cached file is effectively the processed, binary file with the mesh, animation, etc info in it in a more efficient-to-use format than the raw collada file.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...