Click or drag to resize
SoInstanceParameterPredefinedParameters Enumeration

List of predefined per-instance attribute names.

Namespace: OIV.Inventor.Nodes
Assembly: OIV.Inventor (in OIV.Inventor.dll) Version: 9.9.13.0 (9.9.13.0)
Syntax
public enum PredefinedParameters
Members
  Member nameValueDescription
TRANSLATION0
ROTATION1
SCALE2
VISIBILITY3
COLOR4
NUM_PREDEFINED_PARAMETERS5
Remarks

The names corresponding to the following enum symbols can be queried by mean of the getPredefinedParameterName() method. They correspond to a set of predefined parameter names that are automatically managed/interpreted:

  • OivShapeInstanceTranslation: Handles an array of vec3f translation to apply to vertices of each instance.

  • OivShapeInstanceScale: Handles an array of vec3f scale factor applied to vertices of each instance.

  • OivShapeInstanceRotation: Handles an array of vec4f quaternion applied to vertices of each instance.

  • OivShapeInstanceColor: Handles an array of vec3f color applied to vertices of each instance.

  • OivShapeInstanceVisibility: Handles an array of int32 visibility flag to apply to each instance.

OivShapeInstanceTranslation, OivShapeInstanceScale and OivShapeInstanceRotation are combined together to create an equivalent matrix available in GLSL shaders with the function

mat4 OivGetShapeInstanceMatrix()
If no parameters are present then an identity matrix is returned.

OivShapeInstanceColor affects the diffuse color of each instance.

OivShapeInstanceVisibility affects the visibility of each instance (i.e. 0 means hidden and a value greater than zero means visible). This attribute is available in GLSL shaders with the function

int OivGetShapeInstanceVisibility()
.

See Also