Incorrect zDepth Values at object edges - maybe an unfiltered fragment method issue

Hey Guys,

i have a problem with my zMerge in Nuke where a object intersects another where it definitely should not. I have attached 4 images that show that problem.

I have no idea why the Z Values of some pixel seem to be nearer to the cam as the object that is laying over them.
It does not even matter if Part A is switched to “primary visible” “off” or completly hidden…both times the object behind it gets zDepth values closer to the cam.

please see the pics below:

i hope i have described the problem clear enough

cheers
Oli




Hey Oli,

is there a chance, that these are antialiasing artifacts caused by using any filtering methods…?
Because I had a similar problem last days. These artifacts were widely produced in my render passes…

Turning the filtering method to none solved it.

Only one idea…

Cheers!

EDIT: Hm, but you would see the artifacts then in your passes, so this might not be the problem…

When turning AA off i only get fewer artifacts but this does not completly solve the problem! Any other ideas?

Definately looks like a precision issue. If you are rendering halffloat try rendering full float. If not you might want to try and set close ranges for the Z

We are rendering fullfloat…and i also tried to set our “Depth Black” and “Depth White” Values as tight as possible. It does not get better…only different pixels are f$%ked up.

Heeeeeeelp!!!

Ok…now we have a different situation…see the picture and the comments below:

We have hidden only ONE visible filler object which is very far behind in terms of Z-Position. You see that the black artefacts shift to a different position and we have no clue why.

Any ideas would be greatly appreciated!!!
Oli

This is not going to work properly with a filtered Z-Depth element. You can try an unfiltered element with the option “Unfiltered fragment method” set to “Nearest to camera”.

Best regards,
Vlado

He is already using “nearest to camera”, see pics in post #1 or do mean something different Vlado?

Yes, I read, but this will only work if filtering is disabled for the Z-depth (it doesn’t look like it from the images).

Best regards,
Vlado

YES! - we are always using an “unfiltered” zDepth and we also always use “nearest to camera” as u can see here:

And this is also why i suppose that there might be a very little bug in the “nearest to camera” method

I try to send you my scene…unfortunately this needs some time because of confidential data…

Ok then; I guess it would be best to look at the scene.

Best regards,
Vlado

I sent u an email containing a link to the scenefile.

Any news on this problem?