WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 03-29-2010, 08:10 PM
llqqff llqqff is offline
Member
 
Join Date: May 2009
Posts: 25
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
Reply With Quote
  #2  
Old 03-29-2010, 08:42 PM
Darkmax Darkmax is offline
Member
 
Join Date: Feb 2010
Posts: 108
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)
Reply With Quote
  #3  
Old 03-30-2010, 09:09 AM
llqqff llqqff is offline
Member
 
Join Date: May 2009
Posts: 25
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.
Reply With Quote
  #4  
Old 03-30-2010, 10:23 AM
llqqff llqqff is offline
Member
 
Join Date: May 2009
Posts: 25
I solve the problem, thanks.
Reply With Quote
Reply

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

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


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


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