WorldViz User Forum

WorldViz User Forum (https://forum.worldviz.com/index.php)
-   Vizard (https://forum.worldviz.com/forumdisplay.php?f=17)
-   -   Trackers activation (https://forum.worldviz.com/showthread.php?t=3088)

blessonisaac 11-18-2010 03:18 PM

Trackers activation
 
Dear administartor,

I am using PowerWall as my output display device. I would like to use intersense shutter glass and wand for position tracking and head traking. Which way I can use the Python scrip so that vizard can read and activate them with the powerwall

Thanks,
Blesson Isaac

Jeff 11-19-2010 04:31 PM

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)


All times are GMT -7. The time now is 08:42 PM.

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