0
$\begingroup$

This question has been posted many times, but it is impossible to do something working with the new versions of Blender.

I am trying to obtain the real depth map of a scene, meaning that I need to have as output a file containing for each pixel the real distance from the camera. I tried to put the output file format to OpenEXR, but everytime I cannot obtain the depth values. I have tried to use the 'Compositing' pannel, or in a simplier way to use the 'Output properties' pannel. Everytime, I only have a RGBA datafile, even if the 'Z-buffer' option is marked. It seems that this option does not work properly...

EDIT : Thanks to @lemon and this question, I was able to obtain it! But the values are clipped to 6.5504e4... I also obtain a file with 3 channels, the three of them being exactly equal. How can I obtain a file where the values are not clipped?

$\endgroup$
5
  • 1
    $\begingroup$ not sure this is exactly what you need, but if it helps : blender.stackexchange.com/a/205152/19156 $\endgroup$
    – lemon
    Commented Apr 6, 2023 at 13:08
  • $\begingroup$ With OpenEXR, I assume you mean Multilayer EXR and then you opened it in a software that supports multiple layers like Blender, AE or Nuke. right? $\endgroup$
    – Leander
    Commented Apr 6, 2023 at 13:08
  • $\begingroup$ @lemon I am almost there, thanks! But the values obtained are limited to 6.55e4... Even if I am incresing the 'Clip End' of the camera... $\endgroup$
    – Balfar
    Commented Apr 6, 2023 at 13:27
  • $\begingroup$ just a guess, but that can be tried: setting the color management to "raw" (I don't know if blender uses it before writting to the file when using depth). $\endgroup$
    – lemon
    Commented Apr 6, 2023 at 13:44
  • $\begingroup$ EXR files do not save any color transforms. Those are raw values. Might the issue be precision of 32bit float format that the values are stored in? It can hold about 7 significant digits in a decimal number before precision issues begin. You cannot use more precision in Blender it is limited to 32bit floats pretty much for everything. $\endgroup$ Commented Apr 6, 2023 at 18:23

0

You must log in to answer this question.

Browse other questions tagged .