A newer version of Max is available. Click here to access the latest version of the documentation

jit.gl.videoplane Reference

Display video in OpenGL

jit.gl.videoplane

Description

Provides a quick way to show video in OpenGL. Unlike other Jitter OpenGL objects it also has video specific controls.

Examples

Discussion

This 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. Additionally it can reference the name of a jit.gl.node sub-context. This value may also be set via the OB3D drawto attribute. If no argument is present, the object is implicitly added to the first valid drawing context or sub-context found in the current patch or by searching up the patcher hierarchy.

Attributes

client_storage [int]

Enable client storage

colormode [symbol]

Matrix color mode

Possible values:

'argb'
'uyvy'

dim [2 ints]

Geometry grid dimensions

displaylist [int]

Geometry displaylist flag

gridmode [int]

Geometry grid render mode

Possible values:

0 = 'trigrid'
1 = 'quadgrid'

interp [int]

Enable interpolation

nudge [float]

Texture nudge factor

preserve_aspect [int]

When enabled the videoplane aspect ratio will match the ratio of the incoming matrix or texture. When disabled the videoplane is square. This is done internally before any transforms and does not change the scale attribute of the object.

rect_tex [int]

Enable rectangular textures

tex_offset_x [float]

Texture x-offset

tex_offset_y [float]

Texture y-offset

tex_scale_x [float]

Texture x-scale

tex_scale_y [float]

Texture y-scale

texturename [symbol]

Internal texture name

Common Box Attributes

OB3D Attributes

Messages

sendtexture

Arguments

name [symbol]
message [symbol]
values [list]
Send the output texture a message

OB3D Messages

See Also

Name Description
Working with Video in Jitter Working with Video in Jitter
Working with OpenGL Working with OpenGL
Video and Graphics Programming Tutorials Video and Graphics Programming Tutorials
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
Tutorial 42: Slab: Data Processing on the GPU Tutorial 42: Slab: Data Processing on the GPU