WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 12-13-2012, 04: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, 09:47 AM
Jeff Jeff is offline
WorldViz Team Member
 
Join Date: Aug 2008
Posts: 2,462
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, 05: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 12:15 AM
client/server webcam streaming moneim230 Vizard 1 05-19-2011 01:18 PM
How can I use a webcam to record a video in Vizard Zero Vizard 4 06-10-2010 03:53 AM
Plugin For Headtracking with webcam via FaceAPI Adam Plug-in development 3 04-16-2010 11:55 AM
problems with webcam plug-in v-clizzin Plug-in development 2 01-25-2008 03:06 PM


All times are GMT -7. The time now is 02:16 PM.


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