This is RenderMan 21 Documentation you are viewing. The Rmanwiki home page will redirect you to the current documentation.

Page tree

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

Contents

Primitive variables (often referred as "primvar") are data attached to the geometry.  This is useful when a shader needs to reference custom data from the geometry such as foam in an ocean shader.

Transferring Houdini Variables

When the primvar is already available in Houdini such as from an alembic file, we can add Attribute Rename inside your object to map it to RenderMan primvar.

 

We then specify the variable name on the Houdini side and the variable name on the RenderMan side under RiName as well as its RiType.

 

Inside the RIS Network, we create a PxrPrimvar to read this primvar.

 

For example, we wire the resultF of PxrPrimvar to a PxrSurface's Diffuse Gain.