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 |
---|---|
Usd.Prim: Generated PBR material prim |
Source code in omnigibson/utils/render_utils.py
create_skylight(intensity=500, color=(1.0, 1.0, 1.0))
Creates a skylight object with the requested @color
Parameters:
Name | Type | Description | Default |
---|---|---|---|
intensity |
float
|
Intensity of the generated skylight |
500
|
color |
3-array
|
Desired (R,G,B) color to assign to the skylight |
(1.0, 1.0, 1.0)
|
Returns:
Name | Type | Description |
---|---|---|
LightObject | Generated skylight object |
Source code in 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 |