WorldViz User Forum  

Go Back   WorldViz User Forum > Precision Position Tracker (PPT)

 
 
Thread Tools Rating: Thread Rating: 2 votes, 5.00 average. Display Modes
Prev Previous Post   Next Post Next
  #3  
Old 10-01-2008, 01:54 AM
digitaldarklord digitaldarklord is offline
Member
 
Join Date: Jul 2008
Location: Baarn
Posts: 9
Send a message via MSN to digitaldarklord Send a message via Skype™ to digitaldarklord
;-) Tracking cheat

Hi

Just to know for sure if it works...

Could you help me with a snippet just to send the tracking data to the simulation computer ?

Just a snippet with the networking demo that works

#Add a room.
court = viz.add('court.ive')

#Add an avatar for your friend.
other = viz.add('vcc_male.cfg')

############# Add networking ####################
#Name your opponent.
OTHER_COMPUTER = 'vistameuk'

#Add a network for sending data to your other computer.
other_net = viz.addNetwork( OTHER_COMPUTER )

#Send mailox.
def send_box():
#Send the position of the
#cueball to the master.
pos = viz.MainView.getPosition()
ori = viz.MainView.getEuler()
other_net.send( other_pos = pos, other_ori = ori )
#Send the data to the master as frequently as possible.
vizact.ontimer(0, send_box )


#Add a network to listen to the data.
def onNetwork(e):
global current_animation
#This function will handle network
#events.
if e.sender == OTHER_COMPUTER:
#Set the position of the other in your world.
other.setPosition( e.other_pos )
other.setEuler( e.other_ori )
#other.state( e.current_animation )
viz.callback(viz.NETWORK_EVENT,onNetwork)


def onKeyDown(key):
global current_animation
current_animation = eval( key )
viz.callback(viz.KEYDOWN_EVENT,onKeyDown)

So if you start the let's say tracker listener you need to invoke tracking on that machine and send the data to the mainview

While I am not just to send tracking data help would be nice

Thanks
Reply With Quote
 


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
Problem with tracker after reboot eugcc Precision Position Tracker (PPT) 4 08-03-2009 11:26 PM
Crashing when I select Tracker option GoldenSun Vizard 4 07-01-2008 11:06 AM
tracker commands frequency over the JimB Vizard 3 03-07-2008 09:33 AM
Interface with Tobii Eye Tracker Uttama_vizard Precision Position Tracker (PPT) 1 12-12-2007 11:31 AM
Can Vizard interact with the Arrington eye tracker? Deltcho Vizard 1 09-18-2007 02:38 PM


All times are GMT -7. The time now is 06:37 PM.


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