TIFF renders are limited to 8 bit even when we choose 16. #32626

Closed
opened 2012-09-21 23:29:58 +02:00 by Evelyne Theodose · 28 comments

%%%CPU: AMD Athlon X2 2800
RAM: 4 GB
GFX: nVidia GT440 1 GB
OS: Windows 7 64
Drivers: 301.42
Blender: "2.64-RC1-windows64" --> 2.63.19 r50697%%%

%%%CPU: AMD Athlon X2 2800 RAM: 4 GB GFX: nVidia GT440 1 GB OS: Windows 7 64 Drivers: 301.42 Blender: "2.64-RC1-windows64" --> 2.63.19 r50697%%%

Changed status to: 'Open'

Changed status to: 'Open'

%%%Confirmed on Linux 64bit - (BI + Cycles)

This happens when saving as RGB. Choosing RGBA saves as 16bit. %%%

%%%Confirmed on Linux 64bit - (BI + Cycles) This happens when saving as RGB. Choosing RGBA saves as 16bit. %%%

%%%Thanks for the tip, Ejner. Could you please share which Linux build you've been using? In Fedora 16, the RGBA render only has a 32-bit depth, so still 8 bits per channel. Does it work better in Ubuntu?%%%

%%%Thanks for the tip, Ejner. Could you please share which Linux build you've been using? In Fedora 16, the RGBA render only has a 32-bit depth, so still 8 bits per channel. Does it work better in Ubuntu?%%%

%%%Hi Evelyne,

I'm on Fedora 17, and I tested on Blender SVN (now at r50814) and 2.64-RC1.
Rendering RGBA here gives 16 bits per channel (8 bit alpha) - weird that you don't get that in F16?

I made a diff of 'tiff.c' from 2.63a & 2.64-svn and AFAICS the changes are primarily formatting, and a bit of color-management. Only place I found a bigger change is this (from line 789): http://www.pasteall.org/35473/diff
But I'm not qualified to understand what that change implies...%%%

%%%Hi Evelyne, I'm on Fedora 17, and I tested on Blender SVN (now at r50814) and 2.64-RC1. Rendering RGBA here gives 16 bits per channel (8 bit alpha) - weird that you don't get that in F16? I made a diff of 'tiff.c' from 2.63a & 2.64-svn and AFAICS the changes are primarily formatting, and a bit of color-management. Only place I found a bigger change is this (from line 789): http://www.pasteall.org/35473/diff But I'm not qualified to understand what that change implies...%%%

%%%Thanks for doing all this testing. In case it can help solve this mystery, here are further test results in Fedora 16 and Windows 64:

Blender 2.63a
RGBA TIFF → 64-bit color depth=16 bits per channel

Blender 2.63.20 r50741 (the most recent build you can get on GraphicAll.org)
RGBA TIFF → 32-bit color depth=8 bits per channel

Like you, I have no idea what the maths are behind the new color management feature. But the RRT and Film options look lovely, so thanks a lot, Blender devs :-) %%%

%%%Thanks for doing all this testing. In case it can help solve this mystery, here are further test results in Fedora 16 and Windows 64: Blender 2.63a RGBA TIFF → 64-bit color depth=16 bits per channel Blender 2.63.20 r50741 (the most recent build you can get on GraphicAll.org) RGBA TIFF → 32-bit color depth=8 bits per channel Like you, I have no idea what the maths are behind the new color management feature. But the RRT and Film options look lovely, so thanks a lot, Blender devs :-) %%%

%%%Ok I didn't look carefully when checking the image info before. I was fooled by this output from ImageMagick (identify -verbose):

Depth: 8/16-bit
Channel depth:
  red: 16-bit
  green: 16-bit
  blue: 16-bit
  alpha: 8-bit

when in fact it all channels are 8 bit:

Channel statistics:
  Red:
    min: 0 (0)
    max: 255 (1)

where it should be from 0 - 65535, and same for the alpha channel.

So you are absolutely correct, both RGB and RGBA TIFFs are saved in 32 bit color depth in 2.64-RC. Sorry about that. I'll keep digging.

PS: I like your dragon :)%%%

%%%Ok I didn't look carefully when checking the image info before. I was fooled by this output from ImageMagick (identify -verbose): ``` Depth: 8/16-bit Channel depth: red: 16-bit green: 16-bit blue: 16-bit alpha: 8-bit ``` when in fact it all channels are 8 bit: ``` Channel statistics: Red: min: 0 (0) max: 255 (1) ``` where it should be from 0 - 65535, and same for the alpha channel. So you are absolutely correct, both RGB and RGBA TIFFs are saved in 32 bit color depth in 2.64-RC. Sorry about that. I'll keep digging. PS: I like your dragon :)%%%

%%%Correction: 2.64 saves them as 8 bit, not 32 bit color depth :P%%%

%%%Correction: 2.64 saves them as 8 bit, not 32 bit color depth :P%%%

%%%Hi Ejner,
You were right, 2.64 saves them in 32-bit color depth which means 32 bits per pixel: in each pixel, you have 8 bits for the red, blue, green and alpha channels.
The dragon is a demo file from BlenderDiplom to make sure that the bug isn't related to my experiments with OpenColorIO. You can check out their tutorial here: http://www.blenderdiplom.com/index.php/en/tutorials/item/100-blender-264-tutorial-skin-modifier
Cheers,
Ev.
%%%

%%%Hi Ejner, You were right, 2.64 saves them in 32-bit color depth which means 32 bits per pixel: in each pixel, you have 8 bits for the red, blue, green and alpha channels. The dragon is a demo file from BlenderDiplom to make sure that the bug isn't related to my experiments with OpenColorIO. You can check out their tutorial here: http://www.blenderdiplom.com/index.php/en/tutorials/item/100-blender-264-tutorial-skin-modifier Cheers, Ev. %%%

%%%Here's a workaround for people who might be facing the same issue:
1/ Render half-float EXRs.
2/ Use a linear to sRGB LUT. This one gives good results inside DaVinci Resolve: http://f1.creativecow.net/4336/4336
Thanks a ton, Andreas Bravin Karlsson, and thanks Ejner for taking the time to test things out. Given the number of bugs waiting, please consider this one as fixed :-)%%%

%%%Here's a workaround for people who might be facing the same issue: 1/ Render half-float EXRs. 2/ Use a linear to sRGB LUT. This one gives good results inside DaVinci Resolve: http://f1.creativecow.net/4336/4336 Thanks a ton, Andreas Bravin Karlsson, and thanks Ejner for taking the time to test things out. Given the number of bugs waiting, please consider this one as fixed :-)%%%

%%%fixed - this now works as before in 2.63, r50839.

note that the float buffer is converted from float-rec709 color into sRGB color space, without talking into account blender colorspace settings. noted as a TODO in our code.%%%

%%%fixed - this now works as before in 2.63, r50839. note that the float buffer is converted from float-rec709 color into sRGB color space, without talking into account blender colorspace settings. noted as a TODO in our code.%%%

%%%Re-opening, fix isn't actually correct and proper solution should be re-thinked.%%%

%%%Re-opening, fix isn't actually correct and proper solution should be re-thinked.%%%

%%%Thanks for working on it, Campbell and Sergey.
Another workaround would be to render 10-bit DNxHD files. Sergey, do you think it would be possible to add an option for 10-bit encoding now that FFmpeg supports it?%%%

%%%Thanks for working on it, Campbell and Sergey. Another workaround would be to render 10-bit DNxHD files. Sergey, do you think it would be possible to add an option for 10-bit encoding now that FFmpeg supports it?%%%

%%%Proper fix has been commited to svn rev50843.

As for 10bit DNxHD -- of course it's possible, but that's a bit larger change and it's not going to happen for 2.64. Could look into this for 2.65.

Anyway, thanks for the report and patches, closing now. If something is still broken with image I/O please let me know :)%%%

%%%Proper fix has been commited to svn rev50843. As for 10bit DNxHD -- of course it's possible, but that's a bit larger change and it's not going to happen for 2.64. Could look into this for 2.65. Anyway, thanks for the report and patches, closing now. If something is still broken with image I/O please let me know :)%%%

%%%Wow, thanks a lot, that was fast...%%%

%%%Wow, thanks a lot, that was fast...%%%

%%%Tried to save 16 bit TIFF (RGB + RGBA) on r50852 but the result is still 8 bit images here.

After pressing F12, in the image editor I choose "Save As Image" and choose TIFF RGB 16 bit ("Save As Render" and "Copy" is on) and save. Imagemagick and Krita still reports it as 8 bit. What am I doing wrong? %%%

%%%Tried to save 16 bit TIFF (RGB + RGBA) on r50852 but the result is still 8 bit images here. After pressing F12, in the image editor I choose "Save As Image" and choose TIFF RGB 16 bit ("Save As Render" and "Copy" is on) and save. Imagemagick and Krita still reports it as 8 bit. What am I doing wrong? %%%

%%%Seems Save As operator is still doing something different from render result save when rendering animation. Looking again..%%%

%%%Seems Save As operator is still doing something different from render result save when rendering animation. Looking again..%%%

%%%Hi Ejner,
It works well with animations, so in the meantime you can save an animation with only one frame. %%%

%%%Hi Ejner, It works well with animations, so in the meantime you can save an animation with only one frame. %%%

%%%I believe that the issue is finally fixed in svn rev50857.

Would be really appreciated if you'll test this again and let me know if some aspects of the issue are still aren't fixed :)%%%

%%%I believe that the issue is finally fixed in svn rev50857. Would be really appreciated if you'll test this again and let me know if some aspects of the issue are still aren't fixed :)%%%

Changed status from 'Open' to: 'Resolved'

Changed status from 'Open' to: 'Resolved'

%%%Yes works now :)
Thanks Sergey!%%%

%%%Yes works now :) Thanks Sergey!%%%

%%%Great news! The only thing special I noticed when rendering my animation was that it took a one-second delay for the viewer to adjust to the right color space. But the rendered files are perfect.%%%

%%%Great news! The only thing special I noticed when rendering my animation was that it took a one-second delay for the viewer to adjust to the right color space. But the rendered files are perfect.%%%

%%%@Evelyne, not actually sure which exactly viewer you;re mentioning. Is it something to do with a compositor? Perhaps sample .blend file where the delay is noticeable would help a lot :)%%%

%%%@Evelyne, not actually sure which exactly viewer you;re mentioning. Is it something to do with a compositor? Perhaps sample .blend file where the delay is noticeable would help a lot :)%%%

%%%Sorry, I meant the image editor that automatically replaces the 3D viewer when you choose “Animation - Display: Image Editor”.
During the first second of the animation, it looked as if the sequence editor was outputting images in the wrong color space. The first images shown in the viewer looked overexposed. But it wasn't actually the case when checking the rendered files.
Anyway, if you want, I'll try and reproduce this tomorrow when I get hold of my project files. At the moment, the available images don't show this anymore.%%%

%%%Sorry, I meant the image editor that automatically replaces the 3D viewer when you choose “Animation - Display: Image Editor”. During the first second of the animation, it looked as if the sequence editor was outputting images in the wrong color space. The first images shown in the viewer looked overexposed. But it wasn't actually the case when checking the rendered files. Anyway, if you want, I'll try and reproduce this tomorrow when I get hold of my project files. At the moment, the available images don't show this anymore.%%%

%%%O.K. Found a possible explanation: it came from leaving "Convert Float" checked even after there was no need to render EXR files. So maybe it's related to the new TIFF bug that Samuel has just reported.

The strange thing is that it doesn't occur every time. If you want to have a look, I've cut a really dark sample making it easy to see how overexposed it becomes.
The fastest way to reproduce this is to render animations with the same start and end frame: the render stops on a washed-out image which you can compare with the original one.

https://www.dropbox.com/sh/hjl640vu58c2lhd/-y3zwlAfK7
(the tracker system won't let me attach more files)%%%

%%%O.K. Found a possible explanation: it came from leaving "Convert Float" checked even after there was no need to render EXR files. So maybe it's related to the new TIFF bug that Samuel has just reported. The strange thing is that it doesn't occur every time. If you want to have a look, I've cut a really dark sample making it easy to see how overexposed it becomes. The fastest way to reproduce this is to render animations with the same start and end frame: the render stops on a washed-out image which you can compare with the original one. https://www.dropbox.com/sh/hjl640vu58c2lhd/-y3zwlAfK7 (the tracker system won't let me attach more files)%%%

%%%Confirmed the issue, looking into this. But this is something different from TIFF it seems.%%%

%%%Confirmed the issue, looking into this. But this is something different from TIFF it seems.%%%

%%%@Evelyne, This issue should be fixed in svn rev50880.%%%

%%%@Evelyne, This issue should be fixed in svn rev50880.%%%

%%%Thank you again, Blender genius :-)%%%

%%%Thank you again, Blender genius :-)%%%

%%%You're welcome :)%%%

%%%You're welcome :)%%%
Sign in to join this conversation.
4 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: blender/blender#32626
No description provided.