View Single Post
  #2  
Old 11-19-2010, 04:31 PM
Jeff Jeff is offline
WorldViz Team Member
 
Join Date: Aug 2008
Posts: 2,471
You can modify the Single display example from the vizcave page in the Vizard Help so that you use your own tracker for updating the user eye location and the wand for driving the CAVE around in the virtual environment.

So in the lines you see here:
Code:
#Create tracker object using the keyboard (WASD keys control the viewpoint, the user's eye location)
#Make the starting location for the user's eye above origin
viewtracker = viztracker.KeyboardPos()
viewtracker.setPosition(0.0,1.8,0.0)

#Pass the viewpoint tracker into the cave object so it can be automatically updated
cave.setTracker(pos=viewtracker)

#Create CaveView object for manipulating the entire cave environment
#The caveorigin is a node that can be adjusted to move the entire cave around the virtual environment
caveorigin = vizcave.CaveView(viewtracker)
Replace viewtracker with your Intersense tracker. Are you using an IS-900?

Then you can update the caveorigin position and orientation based on the wand joystick or buttons.

If you are displaying in active stereo and viewing with shutter glasses initialize the graphics window using:
Code:
viz.go(viz.QUAD_BUFFER | viz.FULLSCREEN)
Reply With Quote