View Single Post
  #2  
Old 12-17-2012, 09: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