Z Depth / Vray ZDepth / Z Buffer / ...?

Note that your Depth channel was weird… It went from positive to negative. Now, a Fusion artist can still massage those values into something usable like the attached comp does. It first clamps everything less than the lowest value in there (about -2.5). Then it adds 2.5 to the image with a brightness adjustment in order to bring all values positive. Then it scales the values to the 0-1.0 range with a gain of 0.3

I have included a LensCare node in there as well (requires you have LensCare OFX installed in Fusion).

I did not gamma correct these at all. I assume they are actually 1.0.

Here is the output from the Fusion blur… Note the halo around the outside of even the sharp teapot… This is why Fusion’s depth blur sucks…

Here is the same thing from LensCare for OFX (in Fusion). Note that the jaggies on the top of the sharp pot are primarily from the unclamped depth buffer causing there to be no AA right there… Note that you also have to compare moving footage to decide if you want to AA your depth buffer. On a still sometimes no AA looks better, but it usually crawls weird on animation…YMMV… Usually the areas where image overlaps other parts of the image look better with AA in the depth buffer, and areas where the image is against the background (alpha) often look better without AA in the depth buffer. I have rendered it both ways and blended those in the post using a choked or spread alpha matte. It all depend o your shot, how much DOF youa re trying to achieve, how much time you have to mess with the comp, etc.

Here is the Fusion comp. You would want to clamp your Z buffer and to get it to range from zero to just past the max depth in your scene (by manually settings those values in the settings in Max). Once you do that then the CustomTool (which is not strictly necessary at all) and the two BC nodes would not be needed. Note that LensCare likes white to be close to you (though it lets you invert it).

Note that LensCare has its own issues with objects on alpha when you use LensCare’s gamma correction… But that is a different story.
DepthComp.zip (2.91 KB)