![]()  | 
	
| 
		 
			 
			#1  
			
			
			
			
			
		 
		
	 | 
|||
		
		
  | 
|||
| 
		
	
		
		
			
			 
				
				2D Entities in Vizard
			 
			
			
			Hey there, 
		
		
		
		
		
		
		
		
			I have troubles getting 2d image stuff working in vizard. I know it's a trivial thing to do and maybe it's just me ![]() From my OpenGL background I normally would proceed by calling glOrtho to setup the projection matrix and then dump some GL_QUADS ...but somehow I was yet unable to do so in vizard. Would it be possible to point me to a short snippet how i can do it with some foo.png? Thanks in advance, André Last edited by andguent; 03-02-2009 at 08:45 AM.  | 
| 
		 
			 
			#2  
			
			
			
			
			
		 
		
	 | 
|||
		
		
  | 
|||
| 
		
	
		
		
		
		 
			
			Here is code that will display an image in the lower left corner of the screen. Let me know if anything is unclear. 
		
		
		
		
		
		
		
		
	
	Code: 
	import viz
viz.go()
# Create texture from image file
image = viz.add('ball.jpg')
# Display image in lower left corner of screen
quad = viz.addTexQuad(parent=viz.ORTHO)
quad.alignment(viz.ALIGN_LEFT_BOTTOM)
quad.texture(image)
quad.setScale(image.getSize())
 | 
![]()  | 
	
	
		
  | 
	
		
  | 
			 
			Similar Threads
		 | 
	||||
| Thread | Thread Starter | Forum | Replies | Last Post | 
| Vizard tech tip: Text to Speech | Jeff | Vizard | 1 | 01-15-2009 10:39 PM | 
| McAfee Privacy Service 8.1 causes Vizard not to run | mspusch | Vizard | 2 | 09-24-2008 06:17 PM | 
| Vizard and Augmented Reality | realvision | Vizard | 4 | 04-04-2008 11:59 AM | 
| Vizard won't run | wouters | Vizard | 5 | 02-05-2008 12:12 PM | 
| Fall 2007 release of Vizard R3 | 3 D | Announcements | 0 | 10-15-2007 05:50 PM |