WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 12-13-2012, 05:02 AM
infouser infouser is offline
Member
 
Join Date: Dec 2012
Posts: 5
One webcam for AR in HMD

Hello,

Could you help with the code to use one generic webcam to create augmented reality background for both eyes in HMD?

Thanks.
Reply With Quote
  #2  
Old 12-17-2012, 10:47 AM
Jeff Jeff is offline
WorldViz Team Member
 
Join Date: Aug 2008
Posts: 2,471
The Display Background Texture article includes an example script that applies a static texture to the background. Just replace the static texture object with your camera texture object.

Replace:
Code:
#Create background quad and apply a texture
background = addBackgroundQuad()
texture = viz.add('lake3.jpg')
background.texture(texture)
With:
Code:
#Create background quad and apply camera texture
background = addBackgroundQuad()
video = viz.add('VideoCamera.dle')
cam = video.addWebcam()
background.texture(cam)
Reply With Quote
  #3  
Old 12-18-2012, 06:43 AM
infouser infouser is offline
Member
 
Join Date: Dec 2012
Posts: 5
Thanks again, it works
Reply With Quote
Reply

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

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
Flip WebCam input Horizontally goro Vizard 11 06-06-2012 01:15 AM
client/server webcam streaming moneim230 Vizard 1 05-19-2011 02:18 PM
How can I use a webcam to record a video in Vizard Zero Vizard 4 06-10-2010 04:53 AM
Plugin For Headtracking with webcam via FaceAPI Adam Plug-in development 3 04-16-2010 12:55 PM
problems with webcam plug-in v-clizzin Plug-in development 2 01-25-2008 04:06 PM


All times are GMT -7. The time now is 07:04 AM.


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