View Single Post
  #1  
Old 03-20-2009, 02:00 PM
dtidrow dtidrow is offline
Member
 
Join Date: Dec 2008
Posts: 13
Four-wall CAVE using two PCs

We've trying to add a second computer to our CAVE and are running into problems with configuring the windows for the cave walls. Each computer has two gfx cards, with each card driving one wall. How do I specify that a window only get created on the client system? I've tried doing this:

Code:
	viz.cluster.pushMask(viz.CLIENT1)
	window4 = viz.addWindow(pos=(0,0.5),size=(1.0,0.5))
	window4.fov(72.0,1.25)
	window4.clearcolor(GD_vars.CLEAR_COLOR)
	window4.stereo(viz.QUAD_BUFFER)
	viz.cluster.popMask()
...
	BottomWall = vizcave.Wall(upperLeft=(-scr_hw,0,5*0.3048),
				  upperRight=(scr_hw,0,5*0.3048),
				  lowerLeft=(-scr_hw,0,-3*0.3048),
				  lowerRight=(scr_hw,0,-3*0.3048),
				  name='BottomWall' )
...
	cave.addWall(BottomWall,window=window4, mask=viz.CLIENT1)
	window4.visible(GD_vars.CAVE_FLOOR)
but am getting errors like this when I run the code:
Code:
Traceback (most recent call last):
  File "<string>", line 11, in ?
  File "abrams_interior_don.py", line 43, in ?
    import GD_Displays
  File "Y:\Users\tidrow\devel\CAVE\GD_python\GD_Displays.py", line 51, in ?
    window4.setPosition(0,5)
  File "C:\Program Files\WorldViz\Vizard30/python\viz.py", line 3457, in setPosition
    _ipcSend(_VIZ_WINDOWPOS,self.id,mode,'',left,top,0.0,0.0)
TypeError: param1 must be an int
How should I set up two subwindows on both the master and client machine?

Don
Reply With Quote