1
$\begingroup$

The edges of the Cryptomatte are smooth, but the edges of the ID Mask are rough even if the anti-aliasing option is checked.
The anti-aliasing option of ID Mask seems to have a very small difference between on and off.

How can I make the ID Mask's anti-aliasing as smooth as Cryptomatte?

enter image description here

I've attached the blend file I set below.


enter image description here

$\endgroup$
19
  • 1
    $\begingroup$ You can use Blur, Dilate/Erode nodes in different variations to smooth it. But it will be still worse than cryptomatte. $\endgroup$
    – Serge L
    Jan 23 '20 at 14:03
  • 1
    $\begingroup$ I don't think there is any decent, that is why cryptomatte became "game changer" (with som eissues as well, as you can see). You can play with edge in composite, but it always brings some artefacts (inaccuracy) in final comp. $\endgroup$
    – vklidu
    Jan 23 '20 at 15:22
  • $\begingroup$ @vklidu I understood the limitations of ID masks. However, the issue of edge artifacts in Cryptomatte remains. Please review the additional questions on the link. $\endgroup$ Jan 23 '20 at 15:34
  • $\begingroup$ I already commented there :) few hours ago :) see the link there. And I know you know about ID, but you are looking for answer and I think there is not any for ID (except what I and Serge where mentioned). $\endgroup$
    – vklidu
    Jan 23 '20 at 16:53
  • $\begingroup$ @vklidu Oh! I was hasty. There was already your comment. In the meantime, I searched for hours and got a conclusion. The border expansion technique is inevitable and doesn't use matte as raw. As an alternative, it is assumed that you should use viewlayers or look at deepEXR. Or bringing the work of the fusion guys into the blender. $\endgroup$ Jan 23 '20 at 18:00
1
$\begingroup$

I have posted answers both here and here related to finally getting rid of the nasty edge colors when using mattes and compositing, but would like to add to this post relating to the OP's question about edge anti-aliasing. If you use the methods described by vklidu, but also by this YouTube video by CG Cookie using Inpaint nodes and inverse masking etc, you should have practical and near total control of edge sharpness AND get rid of those nasty unwanted edge colors. I have attached a node setup for this: enter image description here Also, a word of caution: you will see a difference in edge quality for Cryptomatte (but NOT ID Mask, as of 2.82a) based upon Cycles Render Properties>Film>Pixel Filter settings. The Cryptomatte will automatically match the sharpness of your pixel filter settings / overall render, so essentially down to a style choice, but be warned that softer edges (like with depth of field and motion blur) can be very challenging to matte and even Inpaint out.

$\endgroup$
2
$\begingroup$

I don't think there is any decent way. That is why cryptomatte became "game changer" (with some issues as well, as you can see in your screen). You can play with edge in compositor, but it always brings some artefacts (inaccuracy) in final comp.

enter image description here

Short pixel "steps" can be disolved quite easily, but long pixel "steps" can't (as you can see on vertical edge). Also corners became a bit chewy. I used ColorRamp instead of Delite/Erode, because it was easier to adjust edge.

enter image description here

Ad Cryptomatte - in Fusion, there seems to be a way of node tree that can avoid that. So probably someone can bring it into a blender as well. https://blenderartists.org/t/cryptomate-matte-edge-imperfection/1189344/3

$\endgroup$

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.