WorldViz User Forum

WorldViz User Forum (https://forum.worldviz.com/index.php)
-   Vizard (https://forum.worldviz.com/forumdisplay.php?f=17)
-   -   Reading bone movement from animations (https://forum.worldviz.com/showthread.php?t=1594)

Enlil 08-07-2008 12:18 PM

Reading bone movement from animations
 
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.


All times are GMT -7. The time now is 07:55 AM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC