WorldViz User Forum  

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

Reply
 
Thread Tools Rating: Thread Rating: 2 votes, 5.00 average. Display Modes
  #1  
Old 09-15-2008, 05:35 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
64 bit tracker ?

Greetings

I ve managed to buy a HMD and it works. But I have a major problem with a product called minuteman. This system is not compatible with 64 bit windows xp.

I need to track the HMD. Does anyone know a cheat and stable solution in combination with worldviz ?

Thanks in advance

I.
Reply With Quote
  #2  
Old 09-15-2008, 05:10 PM
farshizzo farshizzo is offline
WorldViz Team Member
 
Join Date: Mar 2003
Posts: 2,849
You can connect the minuteman to a 32-bit windows machine and send the tracking data over the network to the 64-bit machine. It's the only work around I can think of.
Reply With Quote
  #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
  #4  
Old 10-02-2008, 10:36 AM
farshizzo farshizzo is offline
WorldViz Team Member
 
Join Date: Mar 2003
Posts: 2,849
The script sending the data out should look something like this:
Code:
import viz
viz.go()

#Connect to tracker
tracker = ...

#Create network object for sending tracking data
network = viz.addNetwork('ComputerName')

#Setup timer to output send data every frame
def SendTrackingData():
	pos = tracker.getPosition()
	quat = tracker.getQuat()
	network.send(pos=pos,quat=quat)
vizact.ontimer(0,SendTrackingData)
Your simulation script should contain the following code for retrieving the data over the network:
Code:
import viz
viz.go()

#Create empty node that will contain remote tracker data
remoteTracker = viz.addGroup()

#Setup callback to handle network event
def onNetwork(e):
	remoteTracker.setQuat(e.quat)
	remoteTracker.setPosition(e.pos)
viz.callback(viz.NETWORK_EVENT,onNetwork)

#Now use remoteTracker object like any other tracker
viz.link(remoteTracker,viz.MainView)
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
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 03:03 AM.


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