#1
|
|||
|
|||
Black Background
Hello, i've created two windows to view my scene. I would like to turn black the main window and show the two windows. My code is:
import viz viz.go(viz.FULLSCREEN) maze = viz.addChild('maze.osgb') upLeftWindow = viz.addWindow() upLeftWindowView = viz.addView() upLeftWindow.setView(upLeftWindowView) upLeftWindow.setPosition([0.566,0.91]) upLeftWindow.setSize(0.405, 1) upLeftWindowViewLink = viz.link( viz.MainView, upLeftWindowView ) upLeftWindowViewLink.preEuler([0, 0, 0]) upLeftWindowViewLink.postTrans([0, 0, 0]) upRightWindow = viz.addWindow() upRightWindowView = viz.addView() upRightWindow.setView(upRightWindowView) upRightWindow.setPosition([0.032,0.993]) upRightWindow.setSize(0.436,0.93) upRightWindowviewLink = viz.link( viz.MainView, upRightWindowView ) upRightWindowviewLink.preEuler([0, 0, 0]) upRightWindowviewLink.postTrans([0, 0, 0]) thks. |
#2
|
|||
|
|||
The following line of code will prevent the model from being rendered to the main window:
Code:
maze.renderToAllWindowsExcept([viz.MainWindow]) |
#3
|
|||
|
|||
Run!
THANKS!
It's running. |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
wrong background color in interlaced stereo image | rlh001 | Vizard | 4 | 09-25-2013 04:21 PM |
Is it possible to have make my shapes have black borders? | Renato Lima | Vizard | 2 | 11-13-2010 08:35 AM |
V-Realm Builder background and light load problems | mizutani_jun | Vizard | 0 | 10-08-2010 12:46 AM |
cinematic fade to black? | billjarrold | Vizard | 4 | 12-23-2009 11:09 AM |
black outs | enkeli | Vizard | 4 | 05-09-2006 12:05 PM |