
Bad LMS for Global wheel.
What is Global wheel?
It is gain (multiply) operation performed in a LMS color space. LMS color spaces are, in short, the best color spaces for adjusting white balance. And Global wheel is a white balance tool that should (and for gray scale does) work like white balance in RAW or color filters in front of light sources or a lens. Different LMS color spaces give different results. Some work better for some colors and others for other colors. You can find some of them in Chromatic Adaptation plugin for example. CAT02, Bradford… and so on. So, they are implemented to be a better alternative to performing white balancing in native source primaries.
What’s the problem. Well… LMS color space in HDR palette is just bad. It works worse than performing white balance correction in either native source primaries, or DaVinci Wide Gamut primaries, or AP1 primaries, or CAT02 primaries.
How I tested it.
Here is Alexa RAW image shot under tungsten lighting. In project settings I’ve set color science to Davinci Color Managed and chosen DaVinci Wide Gamut preset, but it’s for simplicity only. It has nothing to do with it and the problem is in HDR palette itself. I’ve set Output Color space to Rec709 (Scene). Also I’ve added just one timeline node and slightly increased contrast. Just to make the difference a bit more noticeable.
For a reference I used Camera RAW white balance settings to set neutral white balance for a 18% gray card. I set Exposure in RAW to the value that gave me the closest result to 0.18 value in scene linear.
For performing adjustments in different color spaces, I’ve set node’s Gamma to Linear and then was changing node’s Color space to the primaries I wanted to test. Then I’ve adjusted white balance (and exposure for compensation) with Gain trackball and Gain wheel of this node. So it was basically the equivalent of a Global wheel, but performed in different color spaces (primaries). For CAT02 LMS I used Chromatic Adaptation OFX and the next node’s gain in linear gamma for exposure compensation.
Here are the results:
No WB correction:

WB correction performed in Camera Raw:

WB correction performed using Global wheel:

WB correction performed using Alexa Wide Gamut primaries:

WB correction performed using DaVinci Wide Gamut primaries:

WB correction performed using CAT02 color space:

All the colors after Global wheel adjustment are not even close to the original colors! Especially the skin tones that become reddish!
So at this moment there is no mathematically correct tool for adjusting white balance in the most popular software for color correction. The only one is chromatic adaptation but it can’t be adjusted from trackball.
And if you could not just fix it, but add a list for selecting different LMS for HDR palette that would be awesome! Like CAT02, Bradford, CIE 2006 and so on.
And one more very important thing. HDR palette works differently for every color space. I mean, this is not because it should work in a different way because they are different. Let’s say you have some image. You transform it into AWG LogC and then set HDR palette to AWG LogC and adjust white balance with Global wheel. And you get some result. Then you take the same image and transform it into RWGRGB REDlog3G10 instead, and do the same with HDR palette, switch it to RWGRGB REDlog3G10 and make identical corrections with Global wheel. And then, if you compare results with the previous image - they are different. So this is definitely a bug.
And one more bug. When HDR palette set to Linear there is hidden OOTF is turned on without a reason. Global wheel set to linear should be identical to Gain wheel, but it isn’t.
I have a lot of other bugs with HDR palette, color management and Color Space Transform. But threads go down from the 1st page so fast, so I will post them into this thread one by one from time to time. So this thread could have a chance to be seen by someone from BM.
I understand that they all won’t be fixed until Resolve 18. So just let us know that you are aware of these issues. And if you need any help in replicating these issues I would be happy to help you with this.
What is Global wheel?
It is gain (multiply) operation performed in a LMS color space. LMS color spaces are, in short, the best color spaces for adjusting white balance. And Global wheel is a white balance tool that should (and for gray scale does) work like white balance in RAW or color filters in front of light sources or a lens. Different LMS color spaces give different results. Some work better for some colors and others for other colors. You can find some of them in Chromatic Adaptation plugin for example. CAT02, Bradford… and so on. So, they are implemented to be a better alternative to performing white balancing in native source primaries.
What’s the problem. Well… LMS color space in HDR palette is just bad. It works worse than performing white balance correction in either native source primaries, or DaVinci Wide Gamut primaries, or AP1 primaries, or CAT02 primaries.
How I tested it.
Here is Alexa RAW image shot under tungsten lighting. In project settings I’ve set color science to Davinci Color Managed and chosen DaVinci Wide Gamut preset, but it’s for simplicity only. It has nothing to do with it and the problem is in HDR palette itself. I’ve set Output Color space to Rec709 (Scene). Also I’ve added just one timeline node and slightly increased contrast. Just to make the difference a bit more noticeable.
For a reference I used Camera RAW white balance settings to set neutral white balance for a 18% gray card. I set Exposure in RAW to the value that gave me the closest result to 0.18 value in scene linear.
For performing adjustments in different color spaces, I’ve set node’s Gamma to Linear and then was changing node’s Color space to the primaries I wanted to test. Then I’ve adjusted white balance (and exposure for compensation) with Gain trackball and Gain wheel of this node. So it was basically the equivalent of a Global wheel, but performed in different color spaces (primaries). For CAT02 LMS I used Chromatic Adaptation OFX and the next node’s gain in linear gamma for exposure compensation.
Here are the results:
No WB correction:

WB correction performed in Camera Raw:

WB correction performed using Global wheel:

WB correction performed using Alexa Wide Gamut primaries:

WB correction performed using DaVinci Wide Gamut primaries:

WB correction performed using CAT02 color space:

All the colors after Global wheel adjustment are not even close to the original colors! Especially the skin tones that become reddish!
So at this moment there is no mathematically correct tool for adjusting white balance in the most popular software for color correction. The only one is chromatic adaptation but it can’t be adjusted from trackball.
And if you could not just fix it, but add a list for selecting different LMS for HDR palette that would be awesome! Like CAT02, Bradford, CIE 2006 and so on.
And one more very important thing. HDR palette works differently for every color space. I mean, this is not because it should work in a different way because they are different. Let’s say you have some image. You transform it into AWG LogC and then set HDR palette to AWG LogC and adjust white balance with Global wheel. And you get some result. Then you take the same image and transform it into RWGRGB REDlog3G10 instead, and do the same with HDR palette, switch it to RWGRGB REDlog3G10 and make identical corrections with Global wheel. And then, if you compare results with the previous image - they are different. So this is definitely a bug.
And one more bug. When HDR palette set to Linear there is hidden OOTF is turned on without a reason. Global wheel set to linear should be identical to Gain wheel, but it isn’t.
I have a lot of other bugs with HDR palette, color management and Color Space Transform. But threads go down from the 1st page so fast, so I will post them into this thread one by one from time to time. So this thread could have a chance to be seen by someone from BM.
I understand that they all won’t be fixed until Resolve 18. So just let us know that you are aware of these issues. And if you need any help in replicating these issues I would be happy to help you with this.
Last edited by Anton Meleshkevich on Fri Nov 05, 2021 9:32 pm, edited 1 time in total.