WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 08-14-2014, 11:40 AM
roobert roobert is offline
Member
 
Join Date: May 2014
Location: Pachuca, Hidalgo, México
Posts: 34
Send a message via Skype™ to roobert
Hi Jeff.
you always have response for my questions, thank you.

The function (prindData) if you print the position, but I would like some model (ball.wrl) follow the position of my hands that detects kineck.

I do not know how to do, I thought with:
Quote:
vrpn = viz.addExtension('vrpn7.dle')
t = vrpn.addTracker( 'Tracker0@localhost',8)
s = vizshape.addSphere(radius=.1)

l=viz.link(t,s)
would appear a ball in my left hand and would move when I move my hand.
Reply With Quote
  #2  
Old 08-14-2014, 11:55 AM
roobert roobert is offline
Member
 
Join Date: May 2014
Location: Pachuca, Hidalgo, México
Posts: 34
Send a message via Skype™ to roobert
I could make and models to follow me.
Is there a best way?
Quote:
import viz
import vizshape
import vizact

viz.go()
grid = vizshape.addGrid()

vrpn = viz.addExtension('vrpn7.dle')
hl = vrpn.addTracker( 'Tracker0@localhost',8)
hr= vrpn.addTracker( 'Tracker0@localhost',14)

handLeft=viz.add('hand_left.cfg')
handRight=viz.add('hand.cfg')

def followMe():
pl=hl.getPosition()
el=hl.getEuler()
handLeft.setPosition(pl)
handLeft.setEuler(el)

pr=hr.getPosition()
er=hr.getEuler()
handRight.setPosition(pr)
handRight.setEuler(er)

vizact.ontimer(0.01,followMe)
Reply With Quote
Reply

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Kinect Data Extraction CG27 Vizard 1 03-03-2014 09:07 AM
Problems with using WIRKS without the Kinect in a mirror setting Jennifer Vizard 0 06-03-2013 03:17 PM
kinect + avatars Darkmax Vizard 7 04-19-2013 04:08 PM
Kinect auto selection of skeleton victorqx Vizard 0 05-29-2012 08:30 AM
vizard 4 with kinect Darkmax Vizard 3 05-04-2011 08:38 PM


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


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