Tutorial Node: Overriding C++ Data Types

This is a tutorial node. It has an input and output of type float[3], an input and output of type double[3], and a type override specification that lets the node use Carbonite types for the generated data on the float[3] attributes only. Ordinarily all of the types would be defined in a seperate configuration file so that it can be shared for a project. In that case the type definition build flag would also be used so that this information does not have to be embedded in every .ogn file in the project. It is placed directly in the file here solely for instructional purposes. The compute is just a rotation of components from x->y, y->z, and z->x, for each input type.

Installation

To use this Node, you must enable omni.graph.tutorials in the Extension Manager.

Inputs

Name

Type

Description

Default

Input value with a modified float type (typedData)

float[3]

The value to rotate

Input value with a standard double type (data)

double[3]

The value to rotate

Outputs

Name

Type

Description

Default

Output value with a modified float type (typedData)

float[3]

The rotated version of inputs::typedData

Output value with a standard double type (data)

double[3]

The rotated version of inputs::data