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

jit.gl.volume

Creates a GL accelerated volume vizualization

Description

The jit.gl.volume object creates a transparent volume from a volumetric density field. Internally, jit.gl.volume creates a 3d jit.gl.texture object and applies it to multiple view-aligned slices of geometry. The resulting slices are then blended together using the standard ob3d blend modes. The density and intensity attributes subsequently control which features are visibile. By enabling the cubes attribute, slices will be rendered in both horizontal and vertical direction, which may result in a visualiation which that is comparitively better or worse depending on the volume dataset being used.
The jit.gl.volume 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

Attributes

Name Type g/s Description
bounds int Flag which enables or disables the rendering of the bounding box surrounding the volume (default = 0).
clip int Flag for enabling a controllable clip plane to slice the volume along an arbitrary axis (default = 0)
clipangle float Rotation angles per axis for the clip plane (default = 0 0 0)
clipaxis float Axis coefficients for the clip plane (default = 1 0 0)
cubes int Flag which enables or disables cube subdivision (default = 1).
density float The density threshold for constructing the surface. (default = 0.5)
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.
distance float The distance offset from the camera. (default = -5)
intensity float The intensity scale factor for multiplying against volume density values. (default = 0.5)
slices int Sets he number of slices used as proxies for rendering the volume data.

Information for box attributes common to all objects

Examples

See Also

Name Description
jit.gl.graph Open GL floating-point data visualization
jit.gl.gridshape Generate simple geometric shapes as a connected grid
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