GPU Interop Example: RpResource to Hydra
Example Node: Send RpResource to Hydra for rendering. The node is meant to be used together with OgnRpResourceAllocator and OgnRpResourceDeformer. For each deformed prim, it is assumed that we have two sets of points to send to hydra for rendering: one set contains the original positions points of the deformed prims, the second contains the points after the deformation operation is applied.
Installation
To use this node enable omni.graph.nodes in the Extension Manager.
Inputs
Name |
Type |
Descripton |
Default |
---|---|---|---|
Point Counts (inputs:pointCountCollection) |
|
Point count for each prim being deformed. Should match the size of the arrays in the ‘Resource Pointer Collection’. |
[] |
Prim Paths (inputs:primPathCollection) |
|
Path for each prim being deformed. Used for input validation during the node computation. |
[] |
Resource Pointer Collection (inputs:resourcePointerCollection) |
|
Pointers to RpResources (two resources per prim are assumed – one for rest positions and one for deformed positions) |
[] |
Send to Hydra (inputs:sendToHydra) |
|
Send the RpResource to hydra using the specified prim path. If set to false, the node can be used simply as a debug node for the RpResource, if verbose is set to true. |
False |
Verbose (inputs:verbose) |
|
If true, the node will log detailed information about the data sent to hydra during the execution. Can negatively impact performance. |
False |
Metadata
Name |
Value |
---|---|
Unique ID |
omni.graph.nodes.RpResourceExampleHydra |
Version |
1 |
Extension |
omni.graph.nodes |
Has State? |
False |
Implementation Language |
C++ |
Default Memory Type |
cpu |
Generated Code Exclusions |
None |
uiName |
GPU Interop Example: RpResource to Hydra |
__tokens |
{“points”: “points”, “transform”: “transform”, “rpResource”: “rpResource”, “pointCount”: “pointCount”, “uintData”: “uintData”} |
Categories |
examples,graph:preRender |
Generated Class Name |
OgnRpResourceExampleHydraDatabase |
Python Module |
omni.graph.nodes |