Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Info

Have you tried Cryptomatte instead of MatteIDs for automatic ID generation?

 

Assigning Matte IDs to rendered object and outputting them as part of the AOVs can be useful for later compositing because this allows compositors to isolate objects.

...

First we'll assign a Green MatteID to the sphere. We can do this by selecting the material transform and adding the RenderMan user attribute for MatteID0:

Image Removed

The result of this is the added parameter under the Extra Attributes of the PxrSurface material. We've made it Green:

Image Added

 Image Removed

If you were to render at this point, even if you added the correct render pass, it would not work. You need to connect a PxrMatteID to the material. You can do this using the Node Editor and connecting to the Utility Pattern Connection of the PxrSurface material:

...

Now add the appropriate pass to the render outputs:

Image RemovedImage Added

The resulting MattID0 pass looks like the one below:

...