Psyop / Cryptomatte

Cryptomatte Nuke plugin, Fusion plugin, sample images, and specification
BSD 3-Clause "New" or "Revised" License
632 stars 151 forks source link

[After Effects] Cryptomatte edge issue #146

Open verbmeister opened 2 years ago

verbmeister commented 2 years ago

Hello, I have a rendered simple scene in C4D Redshift with cryptomatte AOV (need possibility to change colors in the future). Each object has its own Object ID

cr1

Rendered Cryptomatte AOV is colored image with objects

cr0

But when I try to manage each object colors (apply 'Cryptomatte' plugin from ProExr) there is an unwanted edge appear

cr2

When I try to change Hue its become more visible

cr5

Here is compostion layers

cr3

Cryptomatte plugin applied on Cryptomatte AOV layer

cr4

Here is screenshot than shows 'gradient' pixels of Cryptomatte 'Matte only' function

cr6

Could anyone help to resolve this 'edge issue' ?

P.S. For example, there is In UnMult function in Extractor plugin

SenH commented 2 years ago

This is normal. If you think about your RGB beauty (and forget about alpha channels for a minute), you will understand that the edge between the cube and the background is always "contaminated" with both the color of the cube and the BG. There is nothing to unpremultiply in this case, since there are no "clean" RGB values of the BG available.

Cryptomatte is only a generator of masks, it does not solve the edge issue. For light color correction this will not be an issue and you can always fudge with some edge treatment. The clean solution is to render in layers (so you have full RGB information between your FG and BG) or render in deep.