View Single Post
  #6  
Old 01-11-2013, 10: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