WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 08-25-2017, 11:40 PM
Jeff Jeff is offline
WorldViz Team Member
 
Join Date: Aug 2008
Posts: 2,471
If you set the head tracker of the CAVE to a fixed position there will be no updates to the projection matrices. You can still move the CAVE origin around. Here's an example using the powerwall script:

Code:
'''
Use arrow keys and mouse
to move the viewpoint
'''

import viz
import vizcave
import viztracker
import vizinfo

viz.go()
vizinfo.InfoPanel()

#Dimension of PowerWall in meters
WIDTH       = 3.0
HEIGHT      = 3.0
DISTANCE    = 2.0

#Create single power wall
PowerWall = vizcave.Wall(   upperLeft=(-WIDTH/2.0,HEIGHT,DISTANCE),
						 upperRight=(WIDTH/2.0,HEIGHT,DISTANCE),
						 lowerLeft=(-WIDTH/2.0,0.0,DISTANCE),
						 lowerRight=(WIDTH/2.0,0.0,DISTANCE),
						 name='Power Wall' )

cave = vizcave.Cave()
cave.addWall(PowerWall)

# Set a fixed position for the cave tracker
head_tracker = viz.addGroup(pos=[0,1.8,0])
cave.setTracker(head_tracker)

cave_origin = vizcave.CaveView(head_tracker)
origin_tracker = viztracker.KeyboardMouse6DOF()
origin_link = viz.link(origin_tracker, cave_origin)

#Add gallery environment model
viz.add('gallery.osgb')
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
Four Wall Cave using two client cluster JB_HP_Viz Vizard 3 05-13-2016 03:26 AM
anaglyph effect at front view of cave g.vannan Vizard 1 02-03-2015 05:29 AM
Cave Collision problem TopazFrost Vizard 2 02-13-2014 02:34 PM
[New here] Cave joy navigation esuna114 Vizard 2 06-11-2010 04:36 PM
Flipped floor in a CAVE shivanangel Vizard 1 03-10-2010 10:12 AM


All times are GMT -7. The time now is 01:06 PM.


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