Rhino Render EXR not saving distance channel

I know this was working in Rhino 8 previously, but I do not know which update broke it.
I a
test depth channel.3dm (348.7 KB)
test depth channel.exr (290.9 KB)
m on 8.20.25157.13001 SR20.

can you give us some more detail here?
steps you are following so we can reproduce this error?
screen shots, screen recordings etc?

here you go …



This has depth data in. You have to know that the channel has the distance from camera saved in units. You’ll need to map to 0.0..1.0 range if you want to visualize the depth channel:

addendum:

invert if you want to have white closer by

Then something changed then in how the EXR is saved from Rhino. This was previously readable in several applications that I have. Now its not.

Is Blender the only app you know of that will read the distance info from this file?

Is it possible to give the user the ability to choose between the way the EXR was saved previously and the new method?

There was a fix for depth channels in February 2024, the EXR has been written like you see now since then. The issue was with depth resolution, which wasn’t good enough. For large scenes there was not be enough resolution in 0.0-1.0.

Since RhinoCycles replaced the old Rhino Render from Rhino 6 there was not proper testing done with the distance channel. RhinoCycles gives the data differently, the February 2024 fix made it so that the correct data is now recorded, with the actual distances from camera to surface, essentially the old way was incorrect.

EXR can be read in by any respectable image editing software. I use Blender and GIMP for my image editing needs, but I imagine there are other software as well, EXR is used in compositing.

No.

Edit: the distance channel was already broken long ago, it was first reported in November 2020 (A few things about Raytrace / render in WIP), but was most likely incorrect already way before that. The Related YouTrack issue was RH-61748 Rendering: Depth channel lacking resolution.

I have tested GIMP, it is unable to read this version of the EXR.
Photoshop will also not read this EXR.

I can use Blender to convert the EXR to a format that is usable in other apps, although its less convenient.

After your explanation, I understand what you have done is an improvement so thanks for that.
I just have to change how I work with it.

The file you attached in your original post opens just fine in the GIMP 3. Here I opened it and show Colors > Tone Mapping > Stress with split preview

Or better use Levels, picking closest point for black and farthest point for white. Works like the mapping setup I showed in Blender.

Those screenshots help a lot
In GIMP it seems that picking white or black points is an arbitrary process to get the image to show up first.
Then its possible to pick better points after detail in the image is visible

For the benefit of Photoshop users, it is possible to open the EXR and extract the image by using HDR Toning. Unfortunately using Levels and choosing White Point / Black Point does not appear to work.