View Single Post
  #6  
Old 01-18-2005, 01:32 PM
nickyee nickyee is offline
Member
 
Join Date: Jun 2004
Location: Stanford, CA
Posts: 19
Cool - that worked. In case anyone else has the same problem, this is the code I used.

PHP Code:

if tracking:
    
headIsense viz.add('intersense.dls')
    
ppt viz.add('vizppt.dls')
    
#Average over 5 samples
    
ppt.command(5,'',5)
    
#Automatically track head position and orientation
    
viz.tracker()
    
#Add an intersense for body orientation
    
bodyIsense viz.add('intersense.dls')
    
ppt.command(6,'',1,1,1
Then for the reset button:

PHP Code:
    if key == 'r':
        
headIsense.reset()
        
ppt.reset()
        
        if 
HEIGHT_COND == 'tall':
            
viz.eyeheight(HEIGHT_BASE HEIGHT_DIFF)
        
elif HEIGHT_COND == 'short':
            
viz.eyeheight(HEIGHT_BASE HEIGHT_DIFF)
        else:
            
viz.eyeheight(HEIGHT_BASE
Reply With Quote