Thread: Head Height
View Single Post
  #5  
Old 02-09-2007, 09:25 AM
Gladsomebeast Gladsomebeast is offline
Member
 
Join Date: Mar 2005
Location: Isla Vizta, CA
Posts: 397
Here is the proper way to setup PPT and Intersense head tracking in Vizard 3.0. If you are not using Vizard 3.0, download it.

Code:
import viz
viz.go()

PORT_PPT = 0 #Com port number. Zero to search through COM1 to COM4
headPosSensor = viz.add('vizppt.dls')
PORT_INTERSENSE = 0 #Com port number. Zero to search through COM1 to COM4
headOriSensor = viz.add('intersense.dls')
headCombined = viz.mergeLinkable( headPosSensor, headOriSensor )

# Link hybrid head sensor to view and don't offset by eyeheight
headLink = viz.link(headCombined, viz.MainView, dstFlag = viz.LINK_POS_RAW)

#add world
viz.add('court.ive')
__________________
Paul Elliott
WorldViz LLC
Reply With Quote