WorldViz User Forum

WorldViz User Forum (https://forum.worldviz.com/index.php)
-   Vizard (https://forum.worldviz.com/forumdisplay.php?f=17)
-   -   How to vary the transparency of the scene (https://forum.worldviz.com/showthread.php?t=2672)

whj 04-02-2010 02:32 PM

How to vary the transparency of the scene
 
Hello,

.alpha changes the transparency of an OBJECT. But I would like to vary the transparency of part of the SCENE. I tried creating a subview and subwindow, but that only makes part of the scene black.

The following is my code. Is there any way I can show, in the black area, the original scene but make it blurred?

Code:

import viz
viz.go()

viz.add('gallery.ive')

subView1 = viz.addView()
subWindow1 = viz.addWindow(pos=(0,1.0), size=(0.2,1.0))
corner of main window
subWindow1.setView(subView1)
subView1.setScene(2)

subView2 = viz.addView()
subWindow2 = viz.addWindow(pos=(0,1.0), size=(1.0,0.2))
subWindow2.setView(subView2)
subView2.setScene(3)

subView3 = viz.addView()
subWindow3 = viz.addWindow(pos=(0.8,1.0), size=(0.2,1.0))
subWindow3.setView(subView3)
subView3.setScene(4)

subView4 = viz.addView()
subWindow4 = viz.addWindow(pos=(0,0.2), size=(1.0,0.2))
subWindow4.setView(subView4)
subView4.setScene(5)

Thanks a lot,

dwaik 04-04-2010 06:55 AM

try using viz.MainScene.visible(0,viz.WORLD) to hide the scene

whj 04-04-2010 08:16 PM

Sorry, I don't get it. Why hide the scene?


All times are GMT -7. The time now is 11:07 PM.

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