OpenEXR file with only R channel fails to read #61607

Closed
opened 2019-02-16 14:33:39 +01:00 by Steffen Dünner · 32 comments

System Information
Operating system: Linux Mint 19.1
Graphics card: GTX 1080ti / latest drivers

Blender Version
Broken: Current nightlies and own builds of 2.79 and 2.80
Worked: Official 2.79b and older nightlies (can't tell exactly when the problem started to occur, maybe 2 weeks?!)

Short description of error
If I render a simple multilayer EXR without a Z channel and load the resulting image file in e.g. Blender's image editor it looks black with an alpha although during rendering it looked OK.
Rendering with a Z channel gives the correct result.

Exact steps for others to reproduce the error

  • Open this scene: Blacklayers_v01.blend
  • Press CTRL+F12 to render (it's a simple Suzanne with a point light)
  • Load the EXR e.g. into the compositor or Blender image editor -> It turns black
  • Load the image in an external image editor -> all is fine

It looks like Blender can't properly read its own layers any more.

**System Information** Operating system: Linux Mint 19.1 Graphics card: GTX 1080ti / latest drivers **Blender Version** Broken: Current nightlies and own builds of 2.79 and 2.80 Worked: Official 2.79b and older nightlies (can't tell exactly when the problem started to occur, maybe 2 weeks?!) **Short description of error** If I render a simple multilayer EXR without a Z channel and load the resulting image file in e.g. Blender's image editor it looks black with an alpha although during rendering it looked OK. Rendering with a Z channel gives the correct result. **Exact steps for others to reproduce the error** - Open this scene: [Blacklayers_v01.blend](https://archive.blender.org/developer/F6629384/Blacklayers_v01.blend) - Press CTRL+F12 to render (it's a simple Suzanne with a point light) - Load the EXR e.g. into the compositor or Blender image editor -> It turns black - Load the image in an external image editor -> all is fine It looks like Blender can't properly read its own layers any more.

Added subscriber: @SteffenD

Added subscriber: @SteffenD

#77574 was marked as duplicate of this issue

#77574 was marked as duplicate of this issue

#63632 was marked as duplicate of this issue

#63632 was marked as duplicate of this issue
Brecht Van Lommel was assigned by Sebastian Parborg 2019-02-18 11:58:06 +01:00

Added subscriber: @AdamPreisler

Added subscriber: @AdamPreisler
Member

Added subscriber: @BassamKurdali

Added subscriber: @BassamKurdali
Member

I'm not sure if it's the same bug, but I've got an exr (a zbrush displacement map) that renders black in eevee, shows up black in the image / UV editors, but renders greyscale in cycles. It shouldn't have a Z pass, so maybe this is a similar bug. I'm attaching an exr and a test .blend (toggle between lookdev and rendered to see it in eevee/cycles)
zbrushdisp.blend

JokerGargle_Displacement.exr

I'm not sure if it's the same bug, but I've got an exr (a zbrush displacement map) that renders black in eevee, shows up black in the image / UV editors, but renders greyscale in cycles. It shouldn't have a Z pass, so maybe this is a similar bug. I'm attaching an exr and a test .blend (toggle between lookdev and rendered to see it in eevee/cycles) [zbrushdisp.blend](https://archive.blender.org/developer/F6972724/zbrushdisp.blend) ![JokerGargle_Displacement.exr](https://archive.blender.org/developer/F6972725/JokerGargle_Displacement.exr)
Member

small addendum: I'm on gnu/linux (fedora 29), using intel cpu and nvidia gpu (i7/1080)

small addendum: I'm on gnu/linux (fedora 29), using intel cpu and nvidia gpu (i7/1080)

This issue was referenced by eee46769ce

This issue was referenced by eee46769cefe47c9edcc2ac430f212c1e31e7ad5

Changed status from 'Open' to: 'Resolved'

Changed status from 'Open' to: 'Resolved'

The JokerGargle_Displacement.exr is a different case than the original report. It has a single "R" channel. I'll keep the report open for that case.

The JokerGargle_Displacement.exr is a different case than the original report. It has a single "R" channel. I'll keep the report open for that case.

Changed status from 'Resolved' to: 'Open'

Changed status from 'Resolved' to: 'Open'
Brecht Van Lommel changed title from Multilayer EXRs without Z channel give weird results to OpenEXR file with only R channel fails to read 2019-07-17 20:59:11 +02:00
Brecht Van Lommel was unassigned by Dalai Felinto 2019-12-23 16:35:09 +01:00

Added subscriber: @brecht

Added subscriber: @brecht

Added subscriber: @iss

Added subscriber: @iss

Still problem with JokerGargle_Displacement.exr

Still problem with JokerGargle_Displacement.exr
Member

Added subscriber: @SeanKennedy

Added subscriber: @SeanKennedy
Member

I've also run into this bug using the latest stable build of Blender 2.82a. Working on the workflow for STmap lens distortion/undistortion, the STmap I created in Nuke kept importing into Blender as completely black. When I added in a depth pass (not any real information, just a solid color value in the depth channel) and re-saved the EXR, it worked fine.

Including two EXR images, with and without zdepth channel, and a screenshot of both EXR images in Blender's compositor.

STmap_no_depth_pass_01.exr

STmap_depth_pass_01.exr

EXR_depth_pass_bug_01.JPG

I've also run into this bug using the latest stable build of Blender 2.82a. Working on the workflow for STmap lens distortion/undistortion, the STmap I created in Nuke kept importing into Blender as completely black. When I added in a depth pass (not any real information, just a solid color value in the depth channel) and re-saved the EXR, it worked fine. Including two EXR images, with and without zdepth channel, and a screenshot of both EXR images in Blender's compositor. ![STmap_no_depth_pass_01.exr](https://archive.blender.org/developer/F8482454/STmap_no_depth_pass_01.exr) ![STmap_depth_pass_01.exr](https://archive.blender.org/developer/F8482453/STmap_depth_pass_01.exr) ![EXR_depth_pass_bug_01.JPG](https://archive.blender.org/developer/F8482460/EXR_depth_pass_bug_01.JPG)
Member

I created the same image in Natron instead of Nuke, and it worked fine. I did NOT include the z depth pass in this EXR. Otherwise, I used all the same image output settings that I used when rendering from Nuke.

STmap_depth_pass_natron_01.exr

I created the same image in Natron instead of Nuke, and it worked fine. I did NOT include the z depth pass in this EXR. Otherwise, I used all the same image output settings that I used when rendering from Nuke. ![STmap_depth_pass_natron_01.exr](https://archive.blender.org/developer/F8482801/STmap_depth_pass_natron_01.exr)

Added subscriber: @irfancelik

Added subscriber: @irfancelik

Looks like it is naming related. The "..no_depth_pass.." exr shows up as Color.XY instead of Color.RGBA in Natron.

Looks like it is naming related. The "..no_depth_pass.." exr shows up as Color.XY instead of Color.RGBA in Natron.
Contributor

Added subscriber: @p2or

Added subscriber: @p2or
Member

Added subscriber: @L0Lock

Added subscriber: @L0Lock

Added subscriber: @tutukivi

Added subscriber: @tutukivi

Added subscriber: @forcef

Added subscriber: @forcef

Someone please test Quixel .exr files, same issue seems to me and i cannot use roughness map because of that. Blender 2.83 Win 10 x64

Someone please test Quixel .exr files, same issue seems to me and i cannot use roughness map because of that. Blender 2.83 Win 10 x64

Yup, any grayscale-type map downloaded as EXR from Quixel is unusable in Blender because it stores the data in a single R channel with no GBA channels.

Yup, any grayscale-type map downloaded as EXR from Quixel is unusable in Blender because it stores the data in a single R channel with no GBA channels.

I really hope 2.83.1 fixes that, i often want to preview scene/mesh/texture with PBR before moving target object to Unreal. I use .exr files directly in Blender without Bridge for quick preview but now it is not working because of this bug.

I really hope 2.83.1 fixes that, i often want to preview scene/mesh/texture with PBR before moving target object to Unreal. I use .exr files directly in Blender without Bridge for quick preview but now it is not working because of this bug.

Anyone knows workaround for this? 2.83.1 still do not work. How to get that Z channel thing to work?

Anyone knows workaround for this? 2.83.1 still do not work. How to get that Z channel thing to work?
Member

Added subscriber: @EAW

Added subscriber: @EAW
Member

I am looking into fixing this issue. In the meantime You can work around the issue by opening the file in another program and add a G and B channel. The easiest way to do this that I have found is using GIMP.

  1. Download GIMP 2.10.20 and install it.
  2. Open the EXR file in GIMP.
  3. File-> Export As
  4. Give the file a slightly different name so you don’t overwrite the original. Make sure that it ends in .exr

The new file will now work in Blender.

I am looking into fixing this issue. In the meantime You can work around the issue by opening the file in another program and add a G and B channel. The easiest way to do this that I have found is using GIMP. 1. Download GIMP 2.10.20 and install it. 2. Open the EXR file in GIMP. 3. File-> Export As 4. Give the file a slightly different name so you don’t overwrite the original. Make sure that it ends in `.exr` The new file will now work in Blender.

Developers, any plan on fixing this for 2.90 at least or is it possible at all without compromising something?

Developers, any plan on fixing this for 2.90 at least or is it possible at all without compromising something?

This issue was referenced by 5d88f8eba2

This issue was referenced by 5d88f8eba2e2a303c7777af0aa60aec875071596

Changed status from 'Confirmed' to: 'Resolved'

Changed status from 'Confirmed' to: 'Resolved'
Brecht Van Lommel self-assigned this 2020-07-28 17:57:27 +02:00
Sign in to join this conversation.
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser
Interest
Asset Browser Project Overview
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
EEVEE & Viewport
Interest
Freestyle
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Core
Module
Development Management
Module
EEVEE & Viewport
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
13 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender#61607
No description provided.