![]()  | 
	
| 
		 
			 
			#1  
			
			
			
			
			
		 
		
	 | 
|||
		
		
  | 
|||
| 
		
	
		
		
			
			 
				
				orthographic projection question
			 
			
			
			Hi everyone, 
		
		
		
		
		
		
		
		
	
	I'm fairly new to Vizard and am working with orthographic projection. I have a basic question. In the program below, the application window has an aspect ratio of 1, as does the width and height of the 100x100 region between the left/right/top/bottom clipping planes in the orthographic projection setup. But when I run the program, the 90x90 vertical quad centered at (0,0,0) doesn't appear centered vertically in the application window. It is slightly displaced in the downward direction, and I don't understand why. (This is causing me problems when I try to connect mouse coordinates in the application window with objects in the scene.) Anyone have an idea why this is happening? Robin import viz # set application window size viz.window.setSize( 700, 700 ) # set mainWindow viz.MainWindow.ortho(-50,50,-50,50,-1,1) viz.MainWindow.clearcolor( viz.BLACK ) viz.startLayer(viz.QUADS) viz.vertexColor(1,0,0) viz.vertex(-45, 45, 0) viz.vertex(-45,-45, 0) viz.vertex( 45,-45, 0) viz.vertex( 45, 45, 0) viz.endLayer() viz.go()  | 
| 
		 
			 
			#3  
			
			
			
			
			
		 
		
	 | 
|||
		
		
  | 
|||
| 
		
	
		
		
		
		 
			
			Thank you!! That fixed it:-) 
		
		
		
		
		
		
		
		
	
	Robin  | 
![]()  | 
	
	
		
  | 
	
		
  | 
			 
			Similar Threads
		 | 
	||||
| Thread | Thread Starter | Forum | Replies | Last Post | 
| Different projection matrix per viewpoint | dcnieho | Vizard | 6 | 07-08-2016 06:06 AM | 
| Regarding 3 Walled Projection queries | rajnishv | Precision Position Tracker (PPT) | 0 | 04-12-2016 07:19 AM | 
| Projection Matrix (onto oblique near plane) | andrewjworz | Vizard | 1 | 07-13-2012 10:10 AM | 
| Intermittent orthographic stereo projection problems | AySz88 | Vizard | 10 | 02-17-2012 01:50 PM | 
| orthographic projection in a head-tracked cave environment | michaelrepucci | Vizard | 5 | 12-14-2011 11:29 AM |