Making avatar point with hand towards
Hi,
I'm trying to manipulate an avatar, so it points with its hand towards different points ( for example having the avatar point at the viewpoint consistently throughout the script ). I tried to duplicate the code in the follow-that-gaze tutorial, but with different bones (shoulders, arms...), but didn't get any sensible graphic result. Could you please help? Just to clarify - i simple want the whole arm to point at a given direction.... thanks! dan. |
I created a simple BonePointer class that allows you to specify a bone and where to point it at. This example will create an avatar and have it point its right arm towards the viewpoint. Let me know if anything is unclear.
Code:
import viz |
Thank you for this class!
I'm wondering how can I use I would like to make an animation sequence of pointing to an object and going back to it's neutral pose again. Can someone help me with this? Thank you. |
I found that the boneSpinTo function has an option that allows to put in a position vector.
However this doesn't result in correct behaviour. It seems to point at a random direction. I tried playing around with the different modes, with no succes. Code:
import viz How can I make my avatar point at a certain location and when done go back to it's original position? Thank you! |
I tried putting a position point in the bonespinto function. This gives strange results. For example when I move the mainview to a position from where the avatar is visible and press spacebar the arm moves but not the the correct position.
Also after pressing spacebar a second time without moving the mainview the arm moves. Why is this, this shouldn't happen right? Code:
import viz Can someone help me with this? Thank you! |
I think the issue maybe that the center of the bone spins to the correct location but the bone center is not necessarily facing the same direction as the end of the bone, which is what you want in this case. It maybe necessary to calculate an offset for the spinto point or orientation. I'll check with a developer for suggestions.
|
Thank you. Looking forward to your reply.
|
Hi Jeff,
is there any news on the boneSpinTo a position problem? Thank you. Best, Jeroen Derks |
All times are GMT -7. The time now is 09:57 PM. |
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC