
WebcamTexture
Type
ChildNode.
Description
Streams the output from a webcam into a texture. Uses the first camera on your system, and defaults to a resolution of 320x240. This means that the resultant texture will have quite a lot of blank pixels, as OpenGL requires textures to have power-of-two dimensions (512x512 in this case).
Attributes
Example Use
<?xml version="1.0" encoding="utf-8"?> <!DOCTYPE X3D> <X3D profile="Full"> <Scene> <Transform translation="0 0 -8" scale="4.45 4.45 1"> <Shape> <Appearance> <WebcamTexture/> </Appearance> <IndexedFaceSet coordIndex="0 1 2 3 -1" texCoordIndex="0 1 2 3 -1"> <Coordinate point="2 1.5 0 -2 1.5 0 -2 -1.5 0 2 -1.5 0"/> <TextureCoordinate point="0.625 0 0 0 0 0.46875 0.625 0.46875"/> </IndexedFaceSet> </Shape> </Transform> </Scene> </X3D>