![]() |
|
|
|
#1
|
|||
|
|||
|
Thanks farshizzo. What you explained is exactly what I expect. I expect cave_origin to be a magic carpet, and head_tracker to be the user standing on said carpet.
In the below code, I am trying to make a head_tracker, without a magic carpet, but I must be doing something wrong because it doesn't behave as such. ------------------------ import viz import vizcave import viztracker viz.go() viz.add('gallery.ive') height = 3 width = 4 depth = 3 A=-width/2,height,depth B=width/2,height,depth C=-width/2,0,depth D=width/2,0,depth cave = vizcave.Cave() FrontWall = vizcave.Wall( upperLeft=A, upperRight=B, lowerLeft=C, lowerRight=D, name='Front Wall') cave.addWall(FrontWall) cave.drawWalls() viewTracker = viztracker.Keyboard6DOF() cave.setTracker(viewTracker) |
|
#2
|
|||
|
|||
|
The reason your script does not behave properly is because it is not setting up any link between the head tracker and the main viewpoint. As I mentioned previously, the CaveView class is used to setup such a link. If you don't need the magic carpet functionality, then simply ignore the cave_origin object, which defaults to [0,0,0] anyway. Adding the following code to your script should fix the issue:
Code:
vizcave.CaveView(viewTracker) Code:
viz.link(viewTracker,viz.MainView,mask=viz.LINK_POS) |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Any working 3D Vision - quadro systems? | Jerry | Vizard | 0 | 10-20-2010 01:19 PM |
| Properly aligning the intersense with the PPT Systems Z Axis | shivanangel | Precision Position Tracker (PPT) | 0 | 11-10-2009 12:35 PM |
| CAVE, navigation, tracked wand, coordinate systems | JimC | Vizard | 6 | 10-09-2009 01:43 PM |
| creating multiple coordinate systems and making them visible | jalvarez | Vizard | 1 | 02-27-2009 01:36 PM |
| Transforming coordinate systems. | v-Salik | Vizard | 1 | 09-19-2007 08:45 PM |