ZDepth + Fog

Hello,
I need the ZDepth Render Element for rendering the distance. This works as expected (black=front / white=distance) until I add a fog object to the scene.
In the pictures you see that the fog turns the distance into black. Is this as expected? I get huge problems in the post production with the output.

ZDepth WITHOUT fog:

ZDepth WITH fog:

I hope you can help me. Scene in the attachment.
Best - klex
zdepth test 01.zip (55.7 KB)

Hi

I’ve opened your file and zdepth looks like this (not yet on V5.2):

Hi RwVision, on frame 2 I activated the fog. Please try to render this one.

Hello,

This issue is also observed in other V-Ray integrations and has been reported to our developers. I have mentioned this thread and I will let you know once we have any updates. For now, rendering the Z-Depth separately can be used as a workaround.

Thank you for your understanding.