#1
|
|||
|
|||
Render a black subwindow
Now I want to change the vertical field of view by blacking out the pixels I don't want. I am using the following code:
import viz viz.go() viz.add('panorama.ive') #Add a new window. subWindow = viz.addWindow() #Set the size and position of the window. subWindow.setSize(1,.1845) subWindow.setPosition(0,1) subWindow.clearcolor(viz.BLACK) But the subwindow still shows part of the scene of the virtual environment. I don't know why and how to render the subwindow black. Thanks. Qiufeng |
#2
|
|||
|
|||
mm you can add a new view point in the subwindow and set it to scene 2
Code:
import viz viz.go() viz.add('panorama.ive') #Add a new window. subWindow = viz.addWindow() #Set the size and position of the window. subWindow.setSize(1,.1845) subWindow.setPosition(0,1) #Add new viewpoint and set it in scene 2 subView = viz.addView() subView.setScene(2) subWindow.viewpoint(subView) |
#3
|
|||
|
|||
Yea. That works. Thank you very much!!
I have another question: how can I put the subwindow in the bottom of the main window, I tried: import viz viz.go() viz.add('panorama.ive') #Add a new window. subWindow = viz.addWindow() #Set the size and position of the window. subWindow.setSize(1,.1845) subWindow.setPosition(1,0) #Add new viewpoint and set it in scene 2 subView = viz.addView() subView.setScene(2) subWindow.viewpoint(subView) But it does not work. I don't know why. |
#4
|
|||
|
|||
I solve the problem, thanks.
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Black spots on avatars | v-jbinney | Vizard | 7 | 09-07-2010 06:51 PM |
cinematic fade to black? | billjarrold | Vizard | 4 | 12-23-2009 11:09 AM |
Custom Render .EXE export | vaestebob | Plug-in development | 2 | 05-12-2008 07:55 AM |
black outs | enkeli | Vizard | 4 | 05-09-2006 12:05 PM |
2.53 render window problem | bailenson | Vizard | 3 | 09-08-2005 05:05 PM |