Video Background
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. |
The following article from our knowledge base describes how to accomplish this:
http://kb.worldviz.com/articles/813 |
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...
|
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?
|
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() |
Now apply the camera texture to the background:
Code:
background.texture(cam) |
All times are GMT -7. The time now is 10:59 PM. |
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC