Problem making avatar climb stairs
Hi all,
I am trying to make an avatar climb stairs. I am trying to move the avatar using tracking data obtained from kinect and FAAST.. but i am not able to make the avatar climb stairs in my environment.. I would also like to know if we could make the avatar climb stairs using the vizact.walkTo command. Thanks in advance for any help.. Thank you Regards Sujith |
Hi,
I think you should look into the viz.MainView.stepsize(x) command. It sets how much distance (in meters) the viewpoint is allowed to climb up when it encounters an object (like a stair). e.g. viz.MainView.stepsize(.3) -> the avatar will climb over any object that is lower or equal to 30cm. I am pretty sure this would also work for an avatar! |
Is the avatar walking up virtual stairs going to be in sync with the user's movements walking forward?
|
Yes.. Avatar and user are in sync...
|
You can do an intersection test to find out the height of the ground below the avatar and then adjust the avatar's height:
Code:
''' |
Thank you Jeff, that was useful.. Can v do it with vizact.walkTo command also?
|
Yes, you can give a model name as the Y position of the walkTo command. The walkTo will adjust the height of the avatar to match the height of the model:
Code:
import viz |
Thank you Jeff for the previous programs.. Can the avatar also be made to climb stairs which is vertical? . The above programs work well for stairs which is inclined.. but i am not sure how to do it for stairs which is vertical
|
I'm not sure what you want to do. If the avatar should go only up and down you could update just it's Y position.
|
All times are GMT -7. The time now is 04:41 AM. |
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC