WorldViz User Forum

WorldViz User Forum (https://forum.worldviz.com/index.php)
-   Vizard (https://forum.worldviz.com/forumdisplay.php?f=17)
-   -   Black Background (https://forum.worldviz.com/showthread.php?t=5000)

Alex Miranda 04-02-2014 12:08 PM

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.

Jeff 04-04-2014 12:00 AM

The following line of code will prevent the model from being rendered to the main window:
Code:

maze.renderToAllWindowsExcept([viz.MainWindow])

Alex Miranda 04-09-2014 08:13 AM

Run!
 
THANKS!

It's running.


All times are GMT -7. The time now is 11:35 AM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC