WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 08-07-2008, 12:18 PM
Enlil Enlil is offline
Member
 
Join Date: May 2008
Posts: 61
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
Reply With Quote
  #2  
Old 08-07-2008, 02:56 PM
farshizzo farshizzo is offline
WorldViz Team Member
 
Join Date: Mar 2003
Posts: 2,849
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.
Reply With Quote
  #3  
Old 08-09-2008, 11:37 PM
Enlil Enlil is offline
Member
 
Join Date: May 2008
Posts: 61
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
Reply With Quote
  #4  
Old 08-11-2008, 11:53 AM
farshizzo farshizzo is offline
WorldViz Team Member
 
Join Date: Mar 2003
Posts: 2,849
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.
Reply With Quote
  #5  
Old 08-14-2008, 10:49 AM
Enlil Enlil is offline
Member
 
Join Date: May 2008
Posts: 61
I think that may work, thanks. Is there any way to tell what the length of an animation is?

Thanks,
Christian
Reply With Quote
  #6  
Old 08-14-2008, 02:29 PM
farshizzo farshizzo is offline
WorldViz Team Member
 
Join Date: Mar 2003
Posts: 2,849
You can use the avatar.getDuration() command to get the length of an animation.
Reply With Quote
Reply

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
animations dan12345 Vizard 3 07-14-2008 11:43 AM
vcc avatars: defining bone length bjgold Vizard 1 08-08-2007 11:24 AM
problem with female animations vmonkey Vizard 1 10-07-2005 10:36 AM
loading CAF animations vadrian Vizard 1 06-02-2005 04:38 PM
avatar bone movement epl Vizard 3 05-03-2004 04:27 PM


All times are GMT -7. The time now is 04:42 PM.


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