![]()  | 
	
| 
		 
			 
			#1  
			
			
			
			
			
		 
		
	 | 
|||
		
		
  | 
|||
| 
		
	
		
		
			
			 
			
			Hi! 
		
		
		
		
		
		
		
		
	
	I'm interested in displaying a live video feed in Vizard (coming from either a camcorder or webcam attached to the computer). I haven't been able to find anything about doing such a thing in the Vizard tutorials, so I am hoping someone here might be able to help. Assuming this is possible; I also wish to be able to add a custom delay (200 -1000 ms) between the live feed and what is displayed on screen. To do this I would need to buffer a couple of seconds of the live video and play it back, but once again, I am unsure about how I would do such a thing in Vizard. ![]() -Deltcho  | 
| 
		 
			 
			#2  
			
			
			
			
			
		 
		
	 | 
|||
		
		
  | 
|||
| 
		
	
		
		
		
		 
			
			Here is some sample code that will connect to a webcam, add a delay of 30 frames to the live feed, and apply the texture to a quad: 
		
		
		
		
		
		
		
		
	
	Code: 
	import viz
viz.go()
#Create VideoCamera extension
video = viz.add('VideoCamera.dle')
#Connect to webcam
cam = video.addWebcam()
#Add delay of 30 frames to live feed
cam.setDelay(30)
#Apply camera texture to a quad
quad = viz.add(viz.TEXQUAD,pos=(-1,1.8,4),texture=cam)
 | 
| 
		 
			 
			#3  
			
			
			
			
			
		 
		
	 | 
|||
		
		
  | 
|||
| 
		
	
		
		
		
		 
			
			Great!  This is just what I was looking for.
		 
		
		
		
		
		
		
		
		
	
	 | 
![]()  | 
	
	
| Thread Tools | |
| Display Modes | Rate This Thread | 
		
  | 
	
		
  | 
			 
			Similar Threads
		 | 
	||||
| Thread | Thread Starter | Forum | Replies | Last Post | 
| McAfee Privacy Service 8.1 causes Vizard not to run | mspusch | Vizard | 2 | 09-24-2008 06:17 PM | 
| Fall 2007 release of Vizard R3 | 3 D | Announcements | 0 | 10-15-2007 05:50 PM | 
| McAfee Privacy Service 8.1 causes Vizard not to run | mspusch | Vizard | 0 | 03-01-2007 09:24 PM | 
| Matlab and Vizard | brystewa | Vizard | 1 | 09-18-2006 04:11 PM | 
| wxPython with Vizard | farshizzo | Vizard | 18 | 09-29-2005 09:49 AM |