PDA

View Full Version : Avatars + Tracking in Script


amir
07-22-2018, 09:29 PM
Is there a way to add avatars and have specific body parts move based on motion capture trackers without using Vizconnect? I've been able to get real-time motion capture with Optotrak to work with the below code, but not with Vizconnect, so I'm wondering if I can just do it all through the script. The avatar's feet need to move in relation to real movements, in the 1st-person view.

opto = viz.add('optotrak.dle')
body = opto.getBody(0)
viz.link(body, viz.MainView)

I will have a total of 3 Optotrak rigid bodies to track the following motion:

Head movements for adjusting the 1st-person visuals in the HMD
Left foot for walking
Right foot for walking

Jeff
07-25-2018, 10:07 PM
It's best to set up the avatar IK in vizconnect. Regarding using optotrack with vizconnect, please follow up in this (https://forum.worldviz.com/showthread.php?t=6169) thread.