jit.gl.mesh
Description
Creates a geometric surface from a jit.matrix connected to the left-most inlet containing spatial coordinates. Additional geometry can be specified by attaching other jit.matrix objects to the other inlets.
Examples

Discussion
Matrices feed into inlets represent (from left to right): vertex, texcoord, normal, color, specular, edgeflag, tangent, bitangent, and index data.
The jit.gl.mesh 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
auto_bitangents [int]
Enables or disables the calculation of bitangent (aka binormal) directions (only available if texcoords and normals exist) (default = 0).
auto_colors [int]
Enables or disables the calculation of vertex colors (default = 0).
auto_normals [int]
Enables or disables the calculation of normal directions used for calculating lighting (default = 1).
auto_tangents [int]
Enables or disables the calculation of tangent directions (only available if texcoords and normals exist) (default = 0).
cache_mode [symbol]
The mode to use for the geometry cache. (default = var) Supported modes are:
Possible values:
'auto'
'vertexarray'
'vertexbuffer'
'displaylist'
'none'
color_mode [symbol]
The mode to use for the calculating vertex colors. (default = position) Supported modes are:
Possible values:
'vertex'
'position'
'texcoord'
'normal'
'tangent'
'bitangent'
'edgeflag'
draw_mode [symbol]
The mode to use for rendering the geometry. (default = tri_grid) Supported modes are:
Possible values:
'tri_grid'
'quad_grid'
'points'
'lines'
'line_strip'
'line_loop'
'triangles'
'tri_fan'
'tri_strip'
'quads'
'quad_strip'
'polygon'
'lines_adjacency'
'line_strip_adjacency'
'triangles_adjacency'
'triangle_strip_adjacency'
Common Box Attributes
OB3D Attributes
Messages
(drag)
bind
bitangent_matrix
color_matrix
edgeflag_matrix
index_matrix
normal_matrix
reset
specular_matrix
tangent_matrix
texcoord_matrix
unbind
vertex_attr_matrix
vertex_matrix
OB3D Messages
See Also
Name | Description |
---|---|
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.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 | |
jit.gl.volume |