jit.gl.videoplane GL accelerated video plane

The jit.gl.videoplane object maps incoming video to a plane in 3D space. This may be used to exploit hardware accelerated rotation, scaling, interpolation, and blending. The jit.gl.videoplane object requires one argument: the name of a drawing context. A named drawing context is a named instance of a jit.window, jit.pwindow, or jit.matrix object that has an instance of the jit.gl.render object associated with it. This value may also be set via the OB3D drawto attribute.

GL Group

Attributes:
Name Type Description
client_storage int Client storage flag (default = 1) When this flag is set, the jit.gl.videoplane object uses the incoming matrix’s storage rather than allocating texture memory. This attribute is only valid on OS X.
colormode symbol Color mode (default = argb). Possible values are argb or uyvy.
dim int list[2] The dimensions of the grid (default = 20 20)
displaylist int Cache in displaylist flag (default = 0) This feature may be used to speed up rendering time by creating and storing a list of gl drawing commands on the graphics card. This will have no effect if matrixoutput turned on.
gridmode int Grid render mode (default = 0 (quadrilateral grid))
0 = quad_grid (quadrilateral grid)
1 = tri_grid (triangular grid)
interp int Interpolation flag (default = 1)
nudge float Texture nudge value (default = 0.01) This value is the amount the texture is nudged from it’s boundarys to accomodate for boundary errors when mapping the texture to the plane.
tex_offset_x float Texture x-offset (default = 0.)
tex_offset_y float Texture y-offset (default = 0.)
tex_scale_x float Texture x-scale (default = 1.)
tex_scale_y float Texture y-scale (default = 1.)

Messages:
sendtexture [message (list)]
Sends the internal jit.gl.texture object the corresponding message.

Example:

See Also:
jit.gl.graph, jit.gl.gridshape, jit.gl.handle, jit.gl.isosurf, jit.gl.mesh, jit.gl.model, jit.gl.nurbs, jit.gl.plato, jit.gl.render, jit.gl.shader, jit.gl.sketch, jit.gl.slab, jit.gl.text2d, jit.gl.text3d, jit.gl.texture, jit.gl.volume