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


Generate simple geometric shapes as a connected grid


The jit.gl.gridshape object creates one of several simple shapes laid out on a connected grid (sphere, torus, cylinder, opencyclinder, cube, opencube, plane, circle). These shapes may be either rendered directly, or sent out the leftmost outlet as a matrix of values. The jit.gl.gridshape 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.

Information for Jitter 3D Object (OB3D) messages and attributes to this object


Name Type g/s Description
dim int 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)
rad_minor float The minor radius of a torus, if one is rendered or sent out as a matrix. (default = 0.25)
shape symbol The shape to be used (default = sphere) Supported shapes are:

Information for box attributes common to all objects


See Also

Name Description
jit.gl.graph Open GL floating-point data visualization
jit.gl.handle Use mouse movement to control position/rotation
jit.gl.isosurf Generates a GL based surface extraction
jit.gl.mesh Generates GL geometry from existing data
jit.gl.model Read and draw Wavefront .obj models
jit.gl.nurbs Generate NURBS surface
jit.gl.plato Generate platonic solids
jit.gl.render Render Open GL
jit.gl.shader Manages a GL shader
jit.gl.sketch GL parallel to lcd
jit.gl.slab Performs a GL accelerated grid-based evaluation
jit.gl.text2d Write bitmap text
jit.gl.text3d Write vector text
jit.gl.texture Manages a GL texture
jit.gl.videoplane GL accelerated video plane
jit.gl.volume Creates a GL accelerated volume vizualization
Tutorial 32: Camera View Tutorial 32: Camera View
Tutorial 33: Polygon Modes, Colors and Blending Tutorial 33: Polygon Modes, Colors and Blending
Tutorial 37: Geometry Under the Hood Tutorial 37: Geometry Under the Hood
Tutorial 41: Shaders Tutorial 41: Shaders
Tutorial 42: Slab: Data Processing on the GPU Tutorial 42: Slab: Data Processing on the GPU