WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 11-01-2005, 10:22 PM
Vbents Vbents is offline
Member
 
Join Date: Sep 2005
Posts: 25
Pausing and stepping through avatar animations

I am trying to make an avatar squat/bend/duck given a dynamic height (i.e. the lower the height, the more the avatar appears to be squatting or kneeling or something). I would like to use the built in sitting-down animation, but I don't see anyway to have the avatar jump to a certain frame in the animation and stay in that pose.

If this is not possible, is there another recommendation for changing the avatar height which is more realistic than simply scaling or translating the entire body?

-Ben Trombley
Reply With Quote
  #2  
Old 11-02-2005, 09:44 AM
farshizzo farshizzo is offline
WorldViz Team Member
 
Join Date: Mar 2003
Posts: 2,849
Hi,

Weird, I just finished adding this functionality to Vizard, but it won't be available until version 3.0.

In the meantime, your only option would be to manually control the bones for each animation. Vizard allows you to get a handle to a bone and apply translations and rotations to it. Let me know if you need further help with this.
Reply With Quote
  #3  
Old 11-02-2005, 09:49 PM
Vbents Vbents is offline
Member
 
Join Date: Sep 2005
Posts: 25
bug in bone.unlock()?

Every time I use <bone>.unlock() the bone is no longer movable. Here is an example:

bone.lock()
bone.rotate(0, 1, 0, -1, viz.RELATIVE_LOCAL)
bone.unlock()

which does nothing. Is this a glitch in .unlock()?

-Ben
Reply With Quote
  #4  
Old 11-03-2005, 09:14 AM
farshizzo farshizzo is offline
WorldViz Team Member
 
Join Date: Mar 2003
Posts: 2,849
Hi,

You need to keep the bone locked for your manual rotations to take effect. Once you unlock a bone, all your previously applied transformation will be overridden by the avatars current animation state. So try the following instead:
Code:
bone.lock()
bone.rotate(0, 1, 0, -1, viz.RELATIVE_LOCAL)
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


All times are GMT -7. The time now is 06:43 AM.


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