WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 01-11-2013, 11:05 AM
jpriede jpriede is offline
Member
 
Join Date: Dec 2012
Posts: 10
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)
Reply With Quote
  #2  
Old 01-11-2013, 11:26 AM
farshizzo farshizzo is offline
WorldViz Team Member
 
Join Date: Mar 2003
Posts: 2,849
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)
If you insist on not using the CaveView class, then you can manually create the link between the head tracker and main view using the following code:
Code:
viz.link(viewTracker,viz.MainView,mask=viz.LINK_POS)
Both the code snippets above are functionally equivalent. The CaveView class just provides the added magic carpet functionality, which is purely optional.
Reply With Quote
Reply

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

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


All times are GMT -7. The time now is 11:43 PM.


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