WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 02-20-2018, 04:56 PM
miss miss is offline
Registered User
 
Join Date: Feb 2018
Posts: 1
TexQuad Visibility

I have set up a screen with multiple textures in a single quad using a for loop. I have used the viz.addTexture command to add textures from a list I have specified before.

However, I want to remove the visibility of these textures on viztask.waitKeyDown. I am unable to do so. Can anyone please help me out with that?
Reply With Quote
  #2  
Old 02-21-2018, 08:18 PM
Jeff Jeff is offline
WorldViz Team Member
 
Join Date: Aug 2008
Posts: 2,383
Here's an example that removes a texture from a texture quad:

Code:
import viz
import viztask
viz.go()

piazza = viz.addChild('piazza.osgb')
texture = viz.addTexture('lake3.jpg') 
quad = viz.addTexQuad(pos=[0,1.8,3]) 
quad.texture(texture)

def textureTask():
	yield viztask.waitKeyDown(' ')
	quad.texture(None)
	yield viztask.waitKeyDown(' ')
	quad.texture(texture)
	yield viztask.waitKeyDown(' ')
	quad.remove()
	
viztask.schedule( textureTask() )
Reply With Quote
Reply

Tags
quad, texquad, visible, vizard

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
Regarding the visibility of avatars SivaKartheek Vizard 2 01-13-2016 07:48 AM
Attach a TexQuad to pit.osgb screen Ducky Vizard 1 01-17-2013 02:57 PM
TexQuad (viz.screen) and alpha issues kovitch Vizard 2 05-17-2012 10:28 AM
Using a texquad to cover a window Enlil Vizard 4 02-07-2012 03:13 PM
texquad shai Vizard 1 02-23-2005 01:09 PM


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


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