Video Objects

The video objects falicitates the creation of video integration in the scene-graph. A list of predefined and useful objects associates with a video can be rapidly instancied to manipulate video stream in a higher level.


The diagram below summarizes the idea of the video object:

A video input (live camera, video file, streaming video),instance of a class derived from GenericVideo can be associate to a video object (derived from GenericVideoObject).  Internally this video input will be associate with a video texture (derived from a VideoTexture). The video object will therefore deal about the mapping of the video texture on the object (like in the image we can have a VideoCylinder object).

We propose in our library this list of video objects:

Some video objects: video layers, video plane (with multiple videos) and video avatar

Complimentary to these objects, the developer can easily create their own videoobject from a Geode node and associate it a video texture.

Video Texture

The library support actually three types of dynamic textures:
In function of the type of video objects you are using, some implement these different types of video textures. To specify the mode to use you can generally use the setTextureMode define in the GenericVideo class. For example:

Video Shader

The library integrate the concept of video shaders, a shader you can apply to a texture using a video image. The video shader can transform your video image in sepia mode, black and white, gaussian blur, laplacien filtering, etc. To simplify the development of these shaders, the library offers a structure to associate a high level definition of a shader to an object by the usage of the GenericVideoShader class. A GenericVideoShader class can be associate to a video object:

Rather than to be a complex mechanism, this simple principle offers an easy solution to use basic video shaders for their applications. It can be really useful for developping ART demonstration, live VJ software, video player in 3D, etc.

A Black and White VideoShader apply to the default video input