WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

 
 
Thread Tools Rating: Thread Rating: 2 votes, 5.00 average. Display Modes
Prev Previous Post   Next Post Next
  #3  
Old 02-01-2012, 08:20 AM
Enlil Enlil is offline
Member
 
Join Date: May 2008
Posts: 61
Sure! I should have done that in the first place. My problem is not covering the whole screen - that still works. It is when I try to cover a sub-window I have a problem, as shown in the following code:
Code:
import viz
viz.go()
env = viz.add('tankmaze.wrl')

UpperRightWindow = viz.add(viz.WINDOW)
# NEED TO TEST REPLACING THESE COMMANDS FOR VIZARD 4
UpperRightWindow.setPosition(0.5, 1.0)
UpperRightWindow.setSize(0.5, 0.5)
UpperRightWindow.visible(0,viz.SCREEN)
'''
quad = viz.addTexQuad(parent=viz.ORTHO, scale=[12.0, 10.0, 10.0],color=viz.BLACK)
quad.alpha(.5)
'''
vq = ViewQuad()    
#quad = viz.add(viz.TEXQUAD)
lake = viz.add('lake3.jpg')
#quad.billboard(viz.BILLBOARD_YAXIS)
#blackScreen = viz.addTexQuad(parent=viz.SCREEN,scale=[100.0]*3,color=viz.BLACK)
blackScreen = viz.addTexQuad(parent=viz.SCREEN,scale=[12.0, 10.0, 10.0],color=viz.BLACK)
blackScreen.setPosition([.5, .5, 0])
blackScreen.texture(lake)
blackScreen.alpha(0.0)

vizact.onkeydown(' ',blackScreen.runAction,vizact.fadeTo(1.0,time=2.0))
The quad covers the screen, but not the window. Normally I am only trying to cover the subwindow, but this shows the difference better.

Thanks,

Christian
Reply With Quote
 


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
Videos apearing in active movie window TarkaDahl Vizard 9 02-12-2016 02:43 PM
Limit vizinfo message to only one window? hotspur1 Vizard 1 05-07-2010 02:13 PM
tkinter window focus John P Vizard 4 08-31-2009 05:51 AM
texquad shai Vizard 1 02-23-2005 01:09 PM
The error window that couldn't FlyingWren Vizard 2 12-02-2003 08:23 AM


All times are GMT -7. The time now is 05:15 AM.


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