RpResource Example Deformer Node

Allocate CUDA-interoperable RpResource

Installation

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

Inputs

Name

Type

Description

Default

stream (stream)

uint64

Pointer to the CUDA Stream

Resource Pointer Collection (resourcePointerCollection)

uint64[]

Pointer to RpResource collection

Point Counts (pointCountCollection)

uint64[]

Pointer to point counts collection

Prim Paths (primPathCollection)

token[]

Pointer to prim path collection

Verbose (verbose)

bool

verbose printing

False

Displacement Axis (displacementAxis)

int

dimension in which mesh is translated

0

Run Deformer (runDeformerKernel)

bool

Whether cuda kernel will be executed

True

Time Scale (timeScale)

float

Deformation control

0.01

Position Scale (positionScale)

float

Deformation control

1.0

Deform Scale (deformScale)

float

Deformation control

1.0

Outputs

Name

Type

Description

Default

stream (stream)

uint64

Pointer to the CUDA Stream

Resource Pointer Collection (resourcePointerCollection)

uint64[]

Pointers to RpResources (two resources per prim are assumed – one for rest positions and one for deformed positions)

Point Counts (pointCountCollection)

uint64[]

Point count for each prim being deformed

Prim Paths (primPathCollection)

token[]

Path for each prim being deformed

Reload (reload)

bool

Force RpResource reload

False