![]()  | 
	
| 
		 
			 
			#1  
			
			
			
			
			
		 
		
	 | 
|||
		
		
  | 
|||
| 
		
	
		
		
			
			 
				
				simple question drawing to screen
			 
			
			
			I can't figure out how to draw to screen separately for the LEFT and RIGHT eyes.  I just want to make 2-dimensional polygons but have the left and right eyes see completely different views.  Heres what I've been trying: 
		
		
		
		
		
		
		
		
	
	Code: 
	import viz viz.go(viz.HMD | viz.SEREO) viz.startlayer(viz.LINE_LOOP) viz.vertexcolor(viz.BLUE) viz.linewidth(1) viz.vertex(0.2,0.2) viz.vertex(0.2,0.5) viz.vertex(0.5,0.5) viz.vertex(0.5,0.2) line = viz.endlayer(viz.SCREEN,viz.LEFT_EYE)  | 
| 
		 
			 
			#2  
			
			
			
			
			
		 
		
	 | 
|||
		
		
  | 
|||
| 
		
	
		
		
		
		 
			
			You can use the viz.RENDER_RIGHT and viz.RENDER_LEFT flags to prevent a node from rendering to a specific eye in stereo. In your example, if you wanted the line to only show up on the left eye, then you would use the following code: 
		
		
		
		
		
		
		
		
	
	Code: 
	import viz viz.go(viz.HMD | viz.STEREO) viz.startlayer(viz.LINE_LOOP) viz.vertexcolor(viz.BLUE) viz.linewidth(1) viz.vertex(0.2,0.2) viz.vertex(0.2,0.5) viz.vertex(0.5,0.5) viz.vertex(0.5,0.2) line = viz.endlayer(viz.SCREEN) line.disable(viz.RENDER_RIGHT)  | 
| 
		 
			 
			#3  
			
			
			
			
			
		 
		
	 | 
|||
		
		
  | 
|||
| 
		
	
		
		
		
		 
			
			Thats it, thanks.
		 
		
		
		
		
		
		
		
		
	
	 | 
![]()  | 
	
	
		
  | 
	
		
  | 
			 
			Similar Threads
		 | 
	||||
| Thread | Thread Starter | Forum | Replies | Last Post | 
| Question about simple deformation | junghungchien | Vizard | 1 | 08-31-2010 03:53 PM | 
| Simple Joystick Question | 4711 | Vizard | 2 | 06-07-2010 08:06 AM | 
| simple VRPN question | mjabon | Precision Position Tracker (PPT) | 2 | 08-25-2009 11:12 PM | 
| simple question? | Boombay | Vizard | 1 | 07-06-2009 11:51 AM | 
| position of html-file on screen | active_world | Vizard | 1 | 05-16-2008 08:24 PM |