Open Inventor Release 2023.2.3
 
Loading...
Searching...
No Matches
oivInstancing.h File Reference

This file contains fonction to access instancing parameters. More...

Go to the source code of this file.

Functions

void OivInstancingInit ()
 Initialize instancing.
 
int OivInstanceID ()
 Get the current instance ID when using multiple instance.
 
vec3 OivInstanceTranslation ()
 Get the translation vector to apply to the current geometry instance.
 
vec3 OivInstanceScale ()
 Get the scale vector to apply to the current geometry instance.
 
vec4 OivInstanceRotation ()
 Get the rotation (i.e.
 
mat4 OivInstanceMatrix ()
 Get the transformation matrix to apply to the current geometry instance, i.e., the combination of instance rotation, scale and translation.
 
mat4 OivInstancingGlobalModelMatrix ()
 Get the model matrix without instancing transformations i.e., the model matrix at the SoMultipleInstance node level.
 

Detailed Description

This file contains fonction to access instancing parameters.

Definition in file oivInstancing.h.

Function Documentation

◆ OivInstanceID()

int OivInstanceID ( )

Get the current instance ID when using multiple instance.

Returns
the shape instance ID.

◆ OivInstanceMatrix()

mat4 OivInstanceMatrix ( )

Get the transformation matrix to apply to the current geometry instance, i.e., the combination of instance rotation, scale and translation.

Returns
the shape instance transformation matrix.

◆ OivInstanceRotation()

vec4 OivInstanceRotation ( )

Get the rotation (i.e.

a quaternion) to apply to the current geometry instance.

Returns
the shape instance rotation

◆ OivInstanceScale()

vec3 OivInstanceScale ( )

Get the scale vector to apply to the current geometry instance.

Returns
the shape instance scale.

◆ OivInstanceTranslation()

vec3 OivInstanceTranslation ( )

Get the translation vector to apply to the current geometry instance.

Returns
the shape instance translation.

◆ OivInstancingGlobalModelMatrix()

mat4 OivInstancingGlobalModelMatrix ( )

Get the model matrix without instancing transformations i.e., the model matrix at the SoMultipleInstance node level.

◆ OivInstancingInit()

void OivInstancingInit ( )

Initialize instancing.

Must be called when doing instancing.