WorldViz User Forum

WorldViz User Forum (https://forum.worldviz.com/index.php)
-   Vizard (https://forum.worldviz.com/forumdisplay.php?f=17)
-   -   Pausing and stepping through avatar animations (https://forum.worldviz.com/showthread.php?t=446)

Vbents 11-01-2005 10:22 PM

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

farshizzo 11-02-2005 09:44 AM

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.

Vbents 11-02-2005 09:49 PM

bug in bone.unlock()?
 
Every time I use .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

farshizzo 11-03-2005 09:14 AM

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)



All times are GMT -7. The time now is 03:56 AM.

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