PDA

View Full Version : Video Background


vvortex3
05-27-2009, 09:49 PM
Hello, I am new to this forum and to Vizard. Does anyone have an example of displaying live video from a camera behind all 3d graphics. The video should take up the full screen and never move.

The reason I'm trying to set this up is for augmented reality purposes. I would actually use the artoolkit extension but I am unable to get sensor tracking working with the artoolkit extension.

farshizzo
05-28-2009, 09:56 AM
The following article from our knowledge base describes how to accomplish this:

http://kb.worldviz.com/articles/813

vvortex3
05-28-2009, 08:05 PM
Could you possibly provide an example of how to use this with input from a webcam? I am still unable to get this working with a camera feed...

farshizzo
05-28-2009, 09:05 PM
The article shows how to apply a static texture to the background. Just replace the static texture object with your camera texture object. Are you using the VideoCamera plugin to connect to a webcam?

vvortex3
05-29-2009, 04:41 PM
Yes, I'm using the following code to connect to the webcam:

#Create Video Camera extension
video = viz.add('VideoCamera.dle')

#Connect to next available generic video capture device
cam = video.addWebcam()

farshizzo
05-29-2009, 04:46 PM
Now apply the camera texture to the background:background.texture(cam)