PDA

View Full Version : Pausing and stepping through avatar animations


Vbents
11-01-2005, 10:22 PM
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
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

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:bone.lock()
bone.rotate(0, 1, 0, -1, viz.RELATIVE_LOCAL)