![]() |
|
|
|
#1
|
|||
|
|||
|
I get an error if I try to set the MaskedContext to viz.CLIENT1 can you tell me why? I think the VizWindow instance isn't valid.
|
|
#2
|
|||
|
|||
|
The previous code sample is incorrect. Try the following instead:
Code:
import viz
viz.go()
maze = viz.addChild('maze.osgb')
UpperLeftWindow = viz.addWindow(pos=(0,1.0),size=(0.2,0.4))
UpperLeftWindow.visible(0,viz.SCREEN)
BirdView = viz.addView()
#Attach the bird's eye view to the upper left window
UpperLeftWindow.setView(BirdView)
#Move the view above the center of the room
BirdView.setPosition([0,50,0])
#Rotate the view so that it looks down
BirdView.setEuler([0,90,0])
# Show the window only on client 1
UpperLeftWindow.visible(0)
with viz.cluster.MaskedContext(viz.CLIENT1):
UpperLeftWindow.visible(1)
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Question about cluster replacement | mizutani_jun | Vizard | 1 | 02-18-2011 03:49 PM |
| Question about GUI and CLUSTER | mizutani_jun | Vizard | 2 | 01-02-2011 04:35 PM |
| Tiling in a cluster setting | vijaykiran | Vizard | 5 | 10-30-2009 12:41 PM |
| Cluster Help | videcuk | Vizard | 12 | 09-21-2007 03:14 PM |
| quad_buffer cluster | John P | Vizard | 4 | 06-07-2006 11:01 PM |