WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 12-21-2007, 10:41 AM
Deltcho Deltcho is offline
Member
 
Join Date: Sep 2007
Posts: 18
Question Displaying live video in Vizard?

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
Reply With Quote
  #2  
Old 01-04-2008, 10:08 AM
farshizzo farshizzo is offline
WorldViz Team Member
 
Join Date: Mar 2003
Posts: 2,849
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)
We rewrote the webcam plugin to support multiple webcams and DV cameras. This new version will be documented and available in the next release, which should be in a few weeks.
Reply With Quote
  #3  
Old 01-04-2008, 11:05 AM
Deltcho Deltcho is offline
Member
 
Join Date: Sep 2007
Posts: 18
Great! This is just what I was looking for.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

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 05:17 PM
Fall 2007 release of Vizard R3 3 D Announcements 0 10-15-2007 04:50 PM
McAfee Privacy Service 8.1 causes Vizard not to run mspusch Vizard 0 03-01-2007 08:24 PM
Matlab and Vizard brystewa Vizard 1 09-18-2006 03:11 PM
wxPython with Vizard farshizzo Vizard 18 09-29-2005 08:49 AM


All times are GMT -7. The time now is 10:21 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC