![]() |
|
#1
|
|||
|
|||
|
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. |
|
#2
|
|||
|
|||
|
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)
Code:
#Create background quad and apply camera texture
background = addBackgroundQuad()
video = viz.add('VideoCamera.dle')
cam = video.addWebcam()
background.texture(cam)
|
|
#3
|
|||
|
|||
|
Thanks again, it works
|
![]() |
|
|
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 |