Cryptomatte

 

Table Of Contents

Beauty Render Cryptomatte AOV Example

Introduction

Cryptomatte is a system developed by Psyop to deliver a robust matte solution for compositing packages. The Cryptomatte solution encodes EXR images with special image data which automatically generates mattes for several of the commonly needed mattes during post production. This saves time having to generate the matte AOV's manually especially when there are a lot of objects and materials in your scene. Using the Cryptomatte plugin for NUKE or Fusion, mattes can be quickly and easily extracted through picking objects or materials or by entering object names. Cryptomatte in Redshift currently supports several automatic ID Types based on Node Name, Material Name, Redshift Object ID, or Custom User Attributes.

Cryptomatte rendering will automatically force a bucket size of 128 when a render device does not have enough memory.

The Cryptomatte plug-in can be downloaded at the Psyop Github page. https://github.com/Psyop/Cryptomatte


Creating A Cryptomatte AOV

To create a Cryptomatte open the View Layer tab and Enable AOVs. Then toggle on the "Cryptomatte" AOV. The + and - buttons can be used to control the number of Cryptomattes.

Creating a Cryptomatte

 


Cryptomatte ID Types

Cryptomatte AOV Options Menu

Inside the Cryptomatte section you have an "ID Type" dropdown menu which lists the four available Cryptomatte options. This controls what kind of data is used to differentiate between the different parts of your scene. For example, Material Name isolates objects based on their current material while Object ID isolates objects based on their Object ID.

There is also "Cryptomatte Depth" which controls how many objects can intersect on a single pixel and still be considered as separate mattes. Typically the default value of 8 is more than enough for most scenarios. The General AOV options also includes AOV name and file name prefix options.

Cryptomatte options

 



Node Name - ID Type

The "Node Name" ID Type uses the object node naming conventions to build individual unique mattes based on object node names.


In this example Cryptomatte is using Node Name based mattes to isolate mattes for each object node in the scene.


Material Name - ID Type

The "Material Name" ID Type uses the materials in the scene to build unique mattes for each material.


In this example Cryptomatte is using Material Name based mattes to isolate mattes for each material assigned in the scene.


Redshift Object ID - ID Type

The "Redshift Object ID"  ID Type uses the Object ID parameters on the objects you specify in a similar fashion to the Object ID AOV and Puzzle Matte AOV. This Attribute can be found in the Attribute Editor when selecting an object inside of the Redshift properties or by assigning a Redshift Object ID node to objects.


In this example Cryptomatte is using the Redshift Object ID attribute. We assigned them to specific objects allowing us to selectively control the mattes.


Creating Redshift ObjectID's



Multiple objects can share the same Redshift Object ID number if you want to group objects together into a single matte.


User Attribute - ID Type

The "User Attribute" ID Type reads in custom string attributes you have applied to any objects in the scene and uses the attribute names to guide the mattes Cryptomatte generates. This allows you to selectively target and customize the individual mattes naming convention for further control and organization of your Cryptomatte output.


Creating User Attribute Cryptomattes

In the example below User Attributes were applied to specific objects and each object that we wanted to have its own matte was also given an appropriate individual string name to group the objects by. Here we have the tires, floor, wall, license plate, and front windshield & front light in their own matte groups. This allows us to easily customize the objects and names for our mattes using custom attributes.


Specific objects grouped together into their own respective mattes based on the User Attributes we created.



Multiple objects can share the same name if you want to group objects together into a single matte.



Cryptomatte Depth

The "Cryptomatte Depth" value specifies how many objects can exist per-pixel due to overlapping for things like motion blur and depth of field.


Nuke 12 or older does not come with Cryptomatte installed. To use Cryptomatte in older versions of Nuke you will need to install the plug-in.