I got Boundary Artifacts while using Cryptomatte.
I wrote a question on the same topic, and I read a comment that low resolutions could be an issue, and added a resolution perspective to write more specific questions here.

Rendering was done at 2560x1440 and layered the image using an Alpha Over node that takes the Matte output of the Cryptomatte node as a factor.

Even when working at high resolutions, the 1px Boundary Artifacts are still noticeable, and the more distant the object from the camera, the more vulnerable it appears.

How to use Cryptomatte correctly?
I've attached images and blend file to help you understand.

ⅰ) comparison of the original and processed images
enter image description here

ⅱ) Compositor node tree
enter image description here

ⅲ) processed image with 2560x1440 resolution (Click for larger screen please.)
enter image description here

ⅳ) blend file
Open the file and render it in F12 and you will immediately see the artifact. You can check the raw and processed images by turning on/off the Switch node in the raw/fx frame.

Additional example.
I watched the introduction to Cryptomatte from Blender Developer. And I saw connecting the Matte output of Cryptomatte to the factor of the Color FX Node instead of the Alpha Node.
I mocked this and created a new node tree.
enter image description here

However, Cryptomatte also seems to have limitations.
You tried to change the red petals to blue, but Cryptomatte doesn't mask the petals completely, so you can see the red color remaining on the border of the leaves.
(Please click on the image to see the edges of the blue petals at larger size.)
I tried a technique to adjust the mask area using the Dilate / Erode or Bilateral Blur and Colorramp nodes, but there were limitations.
enter image description here

After testing up to this point, I think there's an appropriate range for changing colors with Cryptomatte. If excessive color changes are required, re-rendering the 3D data seems to be the correct way to do it.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.