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
  #2  
Old 01-30-2012, 02:37 PM
farshizzo farshizzo is offline
WorldViz Team Member
 
Join Date: Mar 2003
Posts: 2,849
Can you post some sample code? The following script shows one way to use a quad to fade the scene in/out:
Code:
import viz
import vizact
viz.go()

viz.addChild('gallery.osgb')

fadeQuad = viz.addTexQuad(parent=viz.ORTHO)
fadeQuad.setScale([5000,5000,1])
fadeQuad.color(viz.BLACK)
fadeQuad.alpha(0)
fadeQuad.alignment(viz.ALIGN_LEFT_BOTTOM)
fadeQuad.visible(0)

fadeOut = vizact.sequence( vizact.method.visible(1), vizact.fadeTo(1.0,speed=1.0) )
fadeIn = vizact.sequence( vizact.fadeTo(0.0,speed=1.0), vizact.method.visible(0) )

vizact.onkeydown(' ', fadeQuad.runAction, vizact.choice([fadeOut,fadeIn]) )
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 01:57 AM.


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