Try getting handles to the mainwindow and just one subwindow. Then set their size and position:
Code:
mainWindow = viz.MainWindow
subWindow = viz.addWindow()
WINDOW_SIZE = [1.0/2.0,1.0]
mainWindow.setSize(WINDOW_SIZE)
mainWindow.setPosition([1.0/2.0,1])
subWindow.setSize(WINDOW_SIZE)
subWindow.setPosition([0,1])
You can reference the same window names for the different clients:
Code:
cave.addWall(BottomWall, mask=viz.CLIENT1, window=mainWindow)
cave.addWall(FrontWall, mask=viz.CLIENT1, window=subWindow)
cave.addWall(LeftWall, mask=viz.CLIENT2, window=mainWindow)
cave.addWall(RightWall, mask=viz.CLIENT2, window=subWindow)