© Square Enix © Goodbye Kansas


Table of Contents

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

Compare with Current View Page History

« Previous Version 18 Next »

This page gives information on the Cryptomatte Render Element.

 

Overview


Cryptomatte is a method developed by Psyop for efficiently encoding accurate mattes. It uses typically three to five render elements (which are automatically generated) with OpenEXR files, which removes the hassle of creating dozens, or hundreds, of Multi Mattes. Using the Cryptomatte plugin for NUKE or Fusion, mattes can be extracted through directly picking objects or entering object names. Note that single-channel EXR files using DWA compression are supported, in addition to multichannel EXR files.

With V-Ray 5, update 2, the Cryptomatte Render Element works with both the Bucket and the Progressive Image Sampler types.

Download Example File

Parameters


Name – The text added to the end of the rendered file, when saved as a separate file (e.g. myrender.Cryptomatte.exr).

ID type – Specifies how the matte IDs are generated.

Node Name – Creates matte IDs based on the names of the Geometry nodes.
Material Name – Creates matte IDs based on the names of the materials assigned to the rendered geometry.
Node Name Hierarchy – Creates matte IDs based on the names of the Geometry nodes while taking the Sub-Network node hierarchy into account.
Per Attribute Value – Creates matte IDs based on a primitive string attribute placed on packed geometry types.
Proxy Sub-Object – Creates matte IDs for each individual object within a .vrmesh or .abc file, provided that the rendered file contains more than one object. Only use this option to generate masks for V-Ray Proxy objects - regular geometry is not included in this Cryptomatte layer.

Attribute Name – Specified the name of the primitive string attribute used by the Cryptomatte element when in "Per Attribute Value" mode.

Num. Levels – Determines the number of objects that can be distinguished per pixel. If multiple objects intersect at a single pixel, higher-order elements will contain non-zero results. The default value of 6 is normally enough for most cases.

 

When in "Per Attribute Value" mode, the Cryptomatte element supports Packed Primitives or Packed Alembic Primitives only. Attributes placed on the individual face of a live polygon geometry are not supported. The attribute should be of type string, and placed on the primitives of the rendered packed geometry.

E.g. you could specify "path" under "Attribute Name" for a Delayed Load Alembic file to generate matte IDs based on the partitioning of the Alembic file.

When in "Proxy Sub-Object" mode, instanced V-Ray Proxies will share the same internal matte ID, producing the same mask for the same sub-object of every instance. The recommended workflow in this case is to use a separate Cryptomatte render element set in "Per Attribute Value" mode, with a custom primitive, string attribute placed on the instanced V-Ray Proxies to generate a unique per-instance matte ID, then mask the instances in compositing.

 

References