Hi, I am writing an exporter that combines 3ds Max scene data and information from VRayZDepth to an image processing software. It needs accurate Z-depth values in order to do this correctly. To my surprise, the values rendered by VRayZDepth are inconsistent compared to both the 3ds Max scene and other renderers. An object with a distance of 100 renders with a depth value of 100 in both Corona and Redshift, but in V-Ray this value is instead 0.5. Does anyone know the reason for this, and what unit system V-Ray use when rendering VRayZDepth? Is there a way to change this? I hope someone here can help me out.
Thanks! I will try pPos instead, that sounds like the exact thing that I need.
A bit more wasteful at 32bpc times three channels, but if you keep the transform matrix of the camera, you can turn the element into world coordinates data, so perhaps it becomes quite useful elsewhere.
The VRaySamplerInfo had exactly the kind of scale that was needed for the image processing software, apart from the fact that I need the Z depth to be positive values. The VRaySamplerInfo outputs Z as negative values. There is a multiplier in the Render Element, if I could set that to -1.0 the problem with be solved. Unfortunately, the spinner does not go below 0.0, so I’ve hit the wall on this solution as well. So close!
Indeed, I had assumed you could do the -1 multiplication in post.
Doesn’t Z setup as i have shown work for you? It was giving me the same values as pPos, but positive.
You are absolutely right! Z setup is working as it should. I simply forgot to set the min max values as you had done, can’t believe I missed that! Thanks again!

