![]()  | 
	
| 
	 | 
| 
		 
			 
			#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?  | 
| 
		 
			 
			#2  
			
			
			
			
			
		 
		
	 | 
|||
		
		
  | 
|||
| 
		
	
		
		
		
		 
			
			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() )
 | 
![]()  | 
	
	
| Tags | 
| quad, texquad, visible, vizard | 
| Thread Tools | |
| Display Modes | Rate This Thread | 
		
  | 
	
		
  | 
			 
			Similar Threads
		 | 
	||||
| Thread | Thread Starter | Forum | Replies | Last Post | 
| Regarding the visibility of avatars | SivaKartheek | Vizard | 2 | 01-13-2016 08:48 AM | 
| Attach a TexQuad to pit.osgb screen | Ducky | Vizard | 1 | 01-17-2013 03:57 PM | 
| TexQuad (viz.screen) and alpha issues | kovitch | Vizard | 2 | 05-17-2012 11:28 AM | 
| Using a texquad to cover a window | Enlil | Vizard | 4 | 02-07-2012 04:13 PM | 
| texquad | shai | Vizard | 1 | 02-23-2005 02:09 PM |