#1
|
|||
|
|||
Cave and addtexquad
Hey
I have a 3-wall cave and I'm trying to figure out how to put a texture/plain coloured overlay over the scene. The goal is to provide an "emergency switch" to black out the cave in case of a nausea attack or similar, and later on some progress information. In the single display setup this works: Code:
blackout = viz.addTexQuad(parent=viz.ORTHO) blackout.color(viz.BLACK) blackout.drawOrder(-1) blackout.setBoxTransform(viz.BOX_ENABLED) thanks and cheers |
#2
|
|||
|
|||
The easiest way to black out everything is set the scene to an empty scene:
Code:
viz.scene(2) Code:
windows = [leftWindow,frontWindow,rightWindow] for window in windows: blackout = viz.addTexQuad(parent=viz.ORTHO,scene=window) blackout.color(viz.BLACK) blackout.drawOrder(-1) blackout.setBoxTransform(viz.BOX_ENABLED) |
#3
|
|||
|
|||
Thanks for this solution.
Is there a way to get this window list from vizconnect or would I have to check all windows for existence and assemble it myself? |
#4
|
|||
|
|||
You can get a handle to the window list using the following code. This works for the cave single machine option:
Code:
windows = vizconnect.getDisplay('display_name').getRaw().windowList |
|
|