cables is under heavy development.
There might be one or another bug, please let us know about it!

WebcamTexture_v3 Op


Namespace: Ops.Gl.Textures

Op author: pandur

Use your webcam camera as a texture

summary (oneliner)

  • you need https for webcam to work on many browsers



example patch id

youtube id

caniuse query


related ops


Render (Trigger)

update the output texture with the current webcam picture

Active (boolean /Number)

Generate Texture (boolean /Number)

activate / inactivate genration of the output texture


Webcam Input index (integer /Number)

index of webcam to use from available cameras

Requested Width (integer /Number)

request width from webcam

Requested Height (integer /Number)

request height from webcam


Flip X (boolean /Number)

Flip Y (boolean /Number)

Video Element

Show HTML Element (boolean /Number)

display the html video element

CSS (String)

css styles for the html video element

Element Flip X (boolean /Number)

Element Flip Y (boolean /Number)


Next (Trigger)

Texture (Object)

texture output

Ratio (Number)

aspect ratio

Available (boolean Number)

webcam ready

Size Width (Number)

output size

Size Height (Number)

output height

Error (String)

HTML Element (Object)

the video element

Available devices (Array)

array of available devices

Active device (String)

Texture updated (Trigger)

output trigger on updated texture

Caught a mistake or want to contribute to the documentation?

Edit Documentationcancel save

Webcam texture

Turn the webcam output into a texture which can be processed.

Open Example In Editor

Patches using WebcamTexture_v3


cloned op from Ops.Gl.Textures.WebcamTexture
2020-11-09 - pandur

Ops.User.pandur.Webcam renamed to Ops.Gl.Textures.WebcamTexture_v2
2020-11-09 - pandur

cloned op from Ops.Gl.Textures.WebcamTexture_v2
2021-04-09 - stephan

Ops.User.stephan.WebcamTexture_v3 renamed to Ops.Gl.Textures.WebcamTexture_v3
2021-04-09 - stephan

Ops.Gl.Textures.WebcamTexture_v3 renamed to Ops.Dev.Gl.Textures.NewWebcamTexture
2021-08-03 - stephan

added core lib: cgl_copytexture
2022-04-28 - pandur

Ops.Dev.Gl.Textures.NewWebcamTexture renamed to Ops.Dev.NewWebcamTexture
2022-04-28 - pandur

Ops.Dev.NewWebcamTexture renamed to Ops.Dev.Gl.Textures.NewWebcamTexture
2022-04-28 - pandur

Ops.Dev.Gl.Textures.NewWebcamTexture renamed to Ops.Gl.Textures.WebcamTexture_v3
2022-05-09 - pandur