PDA

View Full Version : cave distortion


mms
08-22-2017, 06:05 AM
Hi,

is there a way to turn off the cave distortion correction or is it possible to apply the same distortion used in the cave configuration for a subwindow?

Best regards

Jeff
08-22-2017, 09:24 PM
is there a way to turn off the cave distortion correction

Can you explain what you are trying to do and the complete hardware setup?

is it possible to apply the same distortion used in the cave configuration for a subwindow?

Yes, that's how the CAVE single machine (http://docs.worldviz.com/vizard/#vizcave_CAVE_single_machine.htm) example script is setup.

mms
08-24-2017, 03:59 AM
I like to disable the distortion effect which is shown in this picture. http://docs.worldviz.com/vizard/images/cave_user.jpg
You can find this picture in the vizard 5 documentation in section “Position/Orientation tracking” of chapter “vizcave basics”, too.

Jeff
08-25-2017, 11:40 PM
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:

'''
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')