WorldViz User Forum

WorldViz User Forum (https://forum.worldviz.com/index.php)
-   Vizard (https://forum.worldviz.com/forumdisplay.php?f=17)
-   -   How to track Continuous Motion (https://forum.worldviz.com/showthread.php?t=5321)

cmeans 03-30-2015 07:33 PM

How to track Continuous Motion
 
I'm very new to Vizard. I'm working on a research project where I use a Kinect to track gestures. Ideally, the subject will make a gesture and as long as they maintain that gesture AND it is in motion, the avatar moves in the virtual environment.

For example, let's say want my IRL subject to make a right angle with their right arm and sweep it out from their stomach. While they move their arm in that position, the avatar runs. However, if they stop moving their arm, the avatar stops running. If they drop their arm to their side, the avatar stops running.

I have the gesture code. How do I track the continuous motion?

Jeff 04-01-2015 03:59 AM

You could register a callback function with vizact.onupdate or vizact.ontimer to check the gesture state each frame or other specified time interval and then change the avatar animation. You could also create custom events for the different gestures and handle those events.


All times are GMT -7. The time now is 03:58 PM.

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