OpenEXR DWA compression should not apply to non-color data passes #51231

Open
opened 2017-04-16 10:55:27 +02:00 by - · 32 comments

Linux Mint 17.3

Blender Version
2.78c

I write you because i've been testing alot with DWAA and DWAB. But there are major features missing. First of all. Blender need a Compression Tab kind of Setup button. I dont find anything in the release build 2.78c.
I uploaded a screenshot from the compositing app Natron to explain what i mean. Bildschirmfoto vom 2017-04-16 10:52:40.png

Second important thing is to make sure which passes get compressed and which are not. So it would be a good idea to create checkerboxes on each layer with a boolean description of "i want to compress this layer or not"

Layers with Capital letters not gonna get compressed. please read more in the foundry forum about that topic.: http://community.foundry.com/discuss/topic/125476

Cheers.

Linux Mint 17.3 **Blender Version** 2.78c I write you because i've been testing alot with DWAA and DWAB. But there are major features missing. First of all. Blender need a Compression Tab kind of Setup button. I dont find anything in the release build 2.78c. I uploaded a screenshot from the compositing app Natron to explain what i mean. ![Bildschirmfoto vom 2017-04-16 10:52:40.png](https://archive.blender.org/developer/F546927/Bildschirmfoto_vom_2017-04-16_10_52_40.png) Second important thing is to make sure which passes get compressed and which are not. So it would be a good idea to create checkerboxes on each layer with a boolean description of "i want to compress this layer or not" Layers with Capital letters not gonna get compressed. please read more in the foundry forum about that topic.: http://community.foundry.com/discuss/topic/125476 Cheers.
Author

Changed status to: 'Open'

Changed status to: 'Open'
Author

Added subscriber: @AlexanderWeide

Added subscriber: @AlexanderWeide
Member

Added subscriber: @Blendify

Added subscriber: @Blendify
Member

Changed status from 'Open' to: 'Archived'

Changed status from 'Open' to: 'Archived'
Aaron Carlisle self-assigned this 2017-04-16 18:30:02 +02:00
Member

Hi, while we love to hear these ideas, this is not the right place for them.
This website is mainly used to track bug reports and not feature requests.
But luckly, there are some other nice solutions you can take,
so please use one of the other forms of communication listed below:

Hi, while we love to hear these ideas, this is not the right place for them. This website is mainly used to track bug reports and not feature requests. But luckly, there are some other nice solutions you can take, so please use one of the other forms of communication listed below: - https://rightclickselect.com/ - Fun board mailing list: https://lists.blender.org/mailman/listinfo/bf-funboard
Author

Hmm, Not nice to hear.. I think you dont get it.. ITs not a missing feature or a nice to have, its essential. The entire DWAA and DWAB Support is useless... because with the actuall methode you compressing all Renderlayers.. like ZDeph and other Aux channels. By doing that you entirely kill the Renderlayer...Its worthless to use it. I wrote it here because you need to Fix this ASAP, otherwise no serious Artist should or will use it. ..

Best regards.

Hmm, Not nice to hear.. I think you dont get it.. ITs not a missing feature or a nice to have, its essential. The entire DWAA and DWAB Support is useless... because with the actuall methode you compressing all Renderlayers.. like ZDeph and other Aux channels. By doing that you entirely kill the Renderlayer...Its worthless to use it. I wrote it here because you need to Fix this ASAP, otherwise no serious Artist should or will use it. .. Best regards.
Member

Hey, I think we already support DWAA and DWAB EXR compression? So I am a little confused about your request.

Hey, I think we already support DWAA and DWAB EXR compression? So I am a little confused about your request.
Author

Hi, yes thats true, but, you dont brought it to the end. You implemented 50% of the DWAA and DWAB support. I can't see any Compression Rate Tab or Setting, but that is really crucial. At which Rate is your DWAA or DWAB compressing? Propper Values are between 20 and 500. A DWAA Layer is used as Compositing Layer with a Production Ready Compressing between 30 and 50. A final composed Layer will be saved with DWAB at 150.

The next important thing is, That blenders Compositor isn't able to read those files of Multilayer EXR's. In short words Blender is not able to read all Renderlayers in the Multilayer EXR DWAA/DWAB Compressed file.

So i want to help you that the responsible code designer understands that there are important missing features. The current version in 2.78c is useless in short words crap. So it would be a good idea to fix it ASAP so that larger productions can use it how it should behave in almost every other Comp/3d app.

To get it done please contact the Natron developer, he integrated it properly into Natron so hopefully he can help you. Please also read the third comment from Deke Kincaid
August 27, 2016 - 3:48 PM http://community.foundry.com/discuss/topic/125476 it will help you to understand problem.

Best Regards ;)

Hi, yes thats true, but, you dont brought it to the end. You implemented 50% of the DWAA and DWAB support. I can't see any Compression Rate Tab or Setting, but that is really crucial. At which Rate is your DWAA or DWAB compressing? Propper Values are between 20 and 500. A DWAA Layer is used as Compositing Layer with a Production Ready Compressing between 30 and 50. A final composed Layer will be saved with DWAB at 150. The next important thing is, That blenders Compositor isn't able to read those files of Multilayer EXR's. In short words Blender is not able to read all Renderlayers in the Multilayer EXR DWAA/DWAB Compressed file. So i want to help you that the responsible code designer understands that there are important missing features. The current version in 2.78c is useless in short words crap. So it would be a good idea to fix it ASAP so that larger productions can use it how it should behave in almost every other Comp/3d app. To get it done please contact the Natron developer, he integrated it properly into Natron so hopefully he can help you. Please also read the third comment from Deke Kincaid August 27, 2016 - 3:48 PM http://community.foundry.com/discuss/topic/125476 it will help you to understand problem. Best Regards ;)
Member

Note that per render layer compression can be accomplished with the file output node in the compositor.
The only thing I think that might be lacking is the ability to do this for a multilayer EXR.

Note that per render layer compression can be accomplished with the file output node in the compositor. The only thing I think that might be lacking is the ability to do this for a multilayer EXR.

Added subscriber: @troy_s

Added subscriber: @troy_s

Jesus Alex, you are at it again with your hyperbolic rubbish.

So it would be a good idea to fix it ASAP so that larger productions can use it how it should behave in almost every other Comp/3d app.

That's right, all of the larger productions with millions of dollars in their pipelines invested in Nuke are going to stop everything and grab Blender because now there is a compression ratio control exposed somewhere you weren't looking.

facepalm

Jesus Alex, you are at it again with your hyperbolic rubbish. > So it would be a good idea to fix it ASAP so that larger productions can use it how it should behave in almost every other Comp/3d app. That's right, all of the larger productions with millions of dollars in their pipelines invested in Nuke are going to stop everything and grab Blender because now there is a compression ratio control exposed somewhere you weren't looking. *facepalm*
Brecht Van Lommel changed title from Important missing Feature Request for DWAA and DWAB. to OpenEXR DWA compression should not apply to non-color data passes 2017-04-16 19:35:36 +02:00

Changed status from 'Archived' to: 'Open'

Changed status from 'Archived' to: 'Open'

Added subscriber: @brecht

Added subscriber: @brecht

I agree there is a bug here, renamed the title to reflect that. I don't think we need manual control, just for some passes with vector/ID/.. types instead of color we need to tell OpenEXR not to apply lossy compression. The same goes for half float compression really, that's also not suitable for most data passes.

I agree there is a bug here, renamed the title to reflect that. I don't think we need manual control, just for some passes with vector/ID/.. types instead of color we need to tell OpenEXR not to apply lossy compression. The same goes for half float compression really, that's also not suitable for most data passes.
Aaron Carlisle was unassigned by Brecht Van Lommel 2017-04-16 19:42:01 +02:00
Author

Ok accepted. At which rate is dwaa and dwab compressing? I asked because if you maybe scaleup the pass from 2k to 4k it would be nice when the compression rate is not above 50. Thats why i asked about a manual slider for compression. I guess if it would compress at 45 as default. all should be fine. Thanks for reactivating the issue and yeah happy easter.

Ok accepted. At which rate is dwaa and dwab compressing? I asked because if you maybe scaleup the pass from 2k to 4k it would be nice when the compression rate is not above 50. Thats why i asked about a manual slider for compression. I guess if it would compress at 45 as default. all should be fine. Thanks for reactivating the issue and yeah happy easter.

Blender uses the default compression level of 45.

So OpenEXR applies lossy compression only to the following channel names: R, G, B, Y, BY, RY. The issue here is the Y channel, which can not only be luminance but also the Y in XYZ.

This appears to be hardcoded, no way to change this without editing the OpenEXR source code. The OpenEXR docs contain channel name conventions for various cases, but not for XYZ vector coordinates.

A workaround is to use lowercase xyz channel names. However Blender itself assumes upper case channel names when reading files, so needs to become case insensitive. The question is how many other applications will not be able to read such files with lower case channel channels. From a quick look Natron also seems like it assumes upper case XYZ channel names.

Blender uses the default compression level of 45. So OpenEXR applies lossy compression only to the following channel names: R, G, B, Y, BY, RY. The issue here is the Y channel, which can not only be luminance but also the Y in XYZ. This appears to be hardcoded, no way to change this without editing the OpenEXR source code. The [OpenEXR docs ](http://www.openexr.com/TechnicalIntroduction.pdf) contain channel name conventions for various cases, but not for XYZ vector coordinates. A workaround is to use lowercase xyz channel names. However Blender itself assumes upper case channel names when reading files, so needs to become case insensitive. The question is how many other applications will not be able to read such files with lower case channel channels. From a quick look [Natron ](https://github.com/MrKepzie/openfx-io/blob/master/OIIO/ReadOIIO.cpp) also seems like it assumes upper case XYZ channel names.

Perhaps the best solution here would not be to change anything in Blender, but to fix OpenEXR to only apply lossy compression to the Y channel when it is the only channel or if it goes along with BY and RY channels.

Perhaps the best solution here would not be to change anything in Blender, but to fix OpenEXR to only apply lossy compression to the Y channel when it is the only channel or if it goes along with BY and RY channels.

Added subscriber: @piiichan

Added subscriber: @piiichan

Hello, not sure where to find someone who could answer that specific question, but in Blender 2.79, OpenEXR DWAB compression has been removed, there's only DWAA left. Why is this?
Isn't DWAB supposed to be slightly better compressed and generally faster to load?

Hello, not sure where to find someone who could answer that specific question, but in Blender 2.79, OpenEXR DWAB compression has been removed, there's only DWAA left. Why is this? Isn't DWAB supposed to be slightly better compressed and generally faster to load?
Author

In #51231#466043, @piiichan wrote:
Hello, not sure where to find someone who could answer that specific question, but in Blender 2.79, OpenEXR DWAB compression has been removed, there's only DWAA left. Why is this?
Isn't DWAB supposed to be slightly better compressed and generally faster to load?

Its really missing yes. And important. A other problem with 2.79 is that Blender 2.79 on Linux is not able anymore to read EXR File textures without problems. Blender is slowing down massivly and consume almost the entire CPU when you try to read exr textures. I can confirm that this is only a problem in Blender 2.79. This also need to be fixed soon.

> In #51231#466043, @piiichan wrote: > Hello, not sure where to find someone who could answer that specific question, but in Blender 2.79, OpenEXR DWAB compression has been removed, there's only DWAA left. Why is this? > Isn't DWAB supposed to be slightly better compressed and generally faster to load? Its really missing yes. And important. A other problem with 2.79 is that Blender 2.79 on Linux is not able anymore to read EXR File textures without problems. Blender is slowing down massivly and consume almost the entire CPU when you try to read exr textures. I can confirm that this is only a problem in Blender 2.79. This also need to be fixed soon.

Added subscriber: @SteffenD

Added subscriber: @SteffenD

DWAB was disabled due to #50673.

If there is a problem reading EXR files, please report a bug with example file to reproduce, because I don't see any problems in my tests.

DWAB was disabled due to #50673. If there is a problem reading EXR files, please report a bug with example file to reproduce, because I don't see any problems in my tests.

Thank you Brecht, I couldn't find an answer, now I have it :)
I hope this can be solved sometime down the road.
I don't have any problem on my side though, with reading and writing EXR files with Blender.

Thank you Brecht, I couldn't find an answer, now I have it :) I hope this can be solved sometime down the road. I don't have any problem on my side though, with reading and writing EXR files with Blender.

Added subscriber: @lsscpp

Added subscriber: @lsscpp

Is there a reason why compression factor isn't exposed to the user? link

Is there a reason why compression factor isn't exposed to the user? [link ](https://blender.community/c/rightclickselect/D1bbbc/)

Added subscriber: @Dogway

Added subscriber: @Dogway

It should expose the quality slider in the same way it is exposed for JPGs.
If the Open EXR specification allows it it should also allow for compression of other layers/channels.

PIZ - If aiming for quality (lossless) (default for archiving Digital EXR masters)
DWAA - If aiming to save space (lossy but transparent compression, might be good for albedos)
RLE - Good for large uniform areas like utility maps (lossless)
PXR24 - Compressing High Dynamic Range passes (Depth, alphas) (lossy)

It should expose the quality slider in the same way it is exposed for JPGs. If the Open EXR specification allows it it should also allow for compression of other layers/channels. > PIZ - If aiming for quality (lossless) (default for archiving Digital EXR masters) > DWAA - If aiming to save space (lossy but transparent compression, might be good for albedos) > RLE - Good for large uniform areas like utility maps (lossless) > PXR24 - Compressing High Dynamic Range passes (Depth, alphas) (lossy)

Dwaa compression has a different value range, it's not 0/100%, but anyway, a slider would be appreciated

Dwaa compression has a different value range, it's not 0/100%, but anyway, a slider would be appreciated
Member

Added subscriber: @lichtwerk

Added subscriber: @lichtwerk
Member

Hm, this still being an issue, but one that has no apparent/obvious solution yet (talking about the Y in XYZ), I am kind of unsure how to classify this report...

I stumbled about this comment (from here )

Yes, we are aware of the Y vs y issue; it is possible to tell the DWA compressor to use different rules and leave the Y channel uncompressed and I hope we can look into it soon.

Or the comments here :

If initializeDefaultChannelRules() doesn't quite suite your naming conventions, you can adjust the rules without breaking decoder compatability.

... but havent done any further investigations... (not sure if this can be done without modifier EXR source...)

Since this is kind of breaking (some) channels though, will classify as Bug for now... (@brecht: please correct me if I am wrong...)

Hm, this still being an issue, but one that has no apparent/obvious solution yet (talking about the `Y` in `XYZ`), I am kind of unsure how to classify this report... I stumbled about this comment (from [here ](https://forums.chaosgroup.com/forum/v-ray-for-maya-forums/v-ray-for-maya-general/76037-rendering-exr-with-dwaa-compression)) > Yes, we are aware of the Y vs y issue; it is possible to tell the DWA compressor to use different rules and leave the Y channel uncompressed and I hope we can look into it soon. Or the comments [here ](https://github.com/AcademySoftwareFoundation/openexr/blob/master/OpenEXR/IlmImf/ImfDwaCompressor.cpp): > If **initializeDefaultChannelRules()** doesn't quite suite your naming conventions, you can adjust the rules without breaking decoder compatability. ... but havent done any further investigations... (not sure if this can be done without modifier EXR source...) Since this is kind of breaking (some) channels though, will classify as Bug for now... (@brecht: please correct me if I am wrong...)

Added subscriber: @BeckersC

Added subscriber: @BeckersC

Added subscriber: @mel

Added subscriber: @mel
Philipp Oeser removed the
Interest
Sculpt, Paint & Texture
label 2023-02-10 09:12:53 +01: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
11 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#51231
No description provided.