For the DEPTH AOV, the above function is called with normalize = false, so there is no normalization performed.
Problem with Z-Depth output
Forum rules
Please upload a testscene that allows developers to reproduce the problem, and attach some images.
Please upload a testscene that allows developers to reproduce the problem, and attach some images.
Re: Problem with Z-Depth output
Re: Problem with Z-Depth output
Ah ok, I didn't think as far anymore at night that Blender API could be involved tooB.Y.O.B. wrote: ↑Sat Apr 04, 2020 10:04 pm It is a Blender API method: https://docs.blender.org/api/current/bp ... e.add_pass
But it's not important to your problem.
You probably want to look at the LuxCore code where the depth AOV output is computed.
Or maybe this?
https://github.com/LuxCoreRender/LuxCor ... r.cpp#L166
It is used in the addon here: https://github.com/LuxCoreRender/BlendL ... nal.py#L25
I already yesterday tried to track it through the LuxCore code, and ended up with the Intersect() method in trianlge.h, where the actual computation of ray distance seem ston be done. However, changing stuff and compiling to test this changed nothing to the render or the depth AOV, so not sure what happened there.