x


When loading an animation, how can I get at the reference pose?

I have a subclass of AssetPostprocessor in which I do various operations on incoming animations (e.g., motion extraction, move-to-origin, etc.) It all works great. I am now tackling mirroring, so I can mirror an incoming animation. In order to do this, I need to have access to the reference pose associated with the model (basically I need a symmetric pose). I load animations as separate files. So, for example, if i am loading fred@jumpLeft, I want to be able to get at the transforms associated with fred. Is there an easy way to do that in the context of AssetPostProcessor?

Thanks,

bb

more ▼

asked Feb 06 '10 at 09:22 PM

bruceb gravatar image

bruceb
189 6 7 12

(comments are locked)
10|3000 characters needed characters left

2 answers: sort voted first

This won't get the reference pose, but might help you in mirroring:

Editor Script:Mirror AnimatorClip Generator

more ▼

answered Feb 27 '10 at 01:44 AM

Cyclops gravatar image

Cyclops
7.1k 33 63 115

(comments are locked)
10|3000 characters needed characters left

If there is, I didn't find it. I ended up just instantiating the model in a scene, removing all animation clips from it to force it into the bind pose, and then running a custom script to extract bone positions and write that to a configuration file that stores bone name, local euler angles, and local position recursively. Then my own mirroring script allows the user to select a bind pose configuration file and uses that for reference when mirroring animations. It only has to be done once per model though.

more ▼

answered Aug 08 '11 at 05:58 PM

getluky gravatar image

getluky
76 1 1 3

(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x3793
x419
x51

asked: Feb 06 '10 at 09:22 PM

Seen: 1551 times

Last Updated: Aug 08 '11 at 05:58 PM