jit.gl.volume Creates a GL accelerated volume vizualization

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.

GL Group

Attributes:
Name Type Description
bounds long Flag which enables or disables the rendering of the bounding box surrounding the volume (default = 0).
cubes long Flag which enables or disables cube subdivision (default = 1).
clip long Flag for enabling a controllable clip plane to slice the volume along an arbitrary axis (default = 0)
clipangle float list[3] Rotation angles per axis for the clip plane (default = 0 0 0)
clipaxis float list[3] Axis coefficients for the clip plane (default = 1 0 0)
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)

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.videoplane