PDA

View Full Version : Reading bone movement from animations


Enlil
08-07-2008, 12:18 PM
Hello,

As the title suggest, is there an easy way to get at the bone movement of the animations of an avatar?

Thanks,
Christian

farshizzo
08-07-2008, 02:56 PM
Do you just need to get the bone position/rotation info? If so, you can use the bone.getPosition() and bone.getQuat() functions to get the current values.

Enlil
08-09-2008, 11:37 PM
We were hoping to get the positions at some arbitrary point in order to apply inverse kinematics (from some other software) to combine the animation and some other motion (say, the movement of an arm based on a tracker). Is such data easily availible?

Thanks,
Christian

farshizzo
08-11-2008, 11:53 AM
You can manually set the time of an animation and then get the position of the bone. Have a look at the avatar.setAnimationTime() command.

Enlil
08-14-2008, 10:49 AM
I think that may work, thanks. Is there any way to tell what the length of an animation is?

Thanks,
Christian

farshizzo
08-14-2008, 02:29 PM
You can use the avatar.getDuration() command to get the length of an animation.