render_utils
Set of rendering utility functions when working with Omni
create_pbr_material(prim_path)
Creates an omni pbr material prim at the specified @prim_path
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
prim_path
|
str
|
Prim path where the PBR material should be generated |
required |
Returns:
| Type | Description |
|---|---|
Prim
|
Generated PBR material prim |
Source code in OmniGibson/omnigibson/utils/render_utils.py
make_glass(prim)
Links the OmniGlass material with EntityPrim, RigidPrim, or VisualGeomPrim @obj, and procedurally generates the necessary OmniGlass material prim if necessary.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
prim
|
EntityPrim or RigidPrim or VisualGeomPrim
|
Desired prim to convert into glass |
required |