Blender AgX in darktable (proof of concept)

Edit I’ve updated the tool with the mixing circles. That diagram only shows the effect of the inset and the outset; it does not reflect the effects of the curve, the log mapping and the hue recovery.

On the CIE xy diagram:

  • O is the original colour
  • I the inset
  • L the log-mapped
  • H the hue-recovered
  • R the result.
  • checking Outset will display the net result of the attenuation, rotation, purity boost and rotation reversal as the final gamut triangle. The effect of attenuation and rotation is always displayed.

Very strong inset/outset also affects brightness (well, even a little inset/outset does, but it’s not that visible).


And rotations, too.


One, purity attenuation, moves a vertex close to the achromatic; the other, rotation, moves an edge.

7 Likes

Regarding the rotation sliders, I never know which direction left/right goes to which hue (green to yellow or cyan). Would it be helpful to have a coloration in the rotation sliders? I know sigmoid doesn’t have that but the rgb primaries’ Hue sliders have these shades.
But I guess with time even my little brain will learn it

4 Likes

Yes, this has been raised. I’ll try to look into it, based on the rgb primaries module.

10 Likes

Master Kofa, how likely is it at this point that edits will be broken by further changes to the code until the final release?

In have been providing migration between versions for months.

4 Likes

See here: Agx terminology (UI) - #113 by kofa

Still no opencl system available for proper testing.

No problem. Also, no problems reported by others, either. :slight_smile:

I have tested the AgX OpenCL code against the regression tests. It seems to be working ok as the diff between the CPU & OpenCL is comparable to what we have for other modules. That is, the diff is between 10k to 20k pixels IIRC.

4 Likes

I’m using the opencl branch on macos m2 for a couple of days. I did not try to compare side by side for visual changes, but nothing is obvious broken!

2 Likes

I can confirm that the behavior happens without OpenCL on the current nightly build as well. It is therefore likely unrelated to agx.

1 Like

I found this strange bug where after using the white relative exposure picker after bumping exposure, a blue cast is produced that seems to stick even after disabling agx. Maybe the picker gets tied to somewhere else? It’s rather strange.

PS: Sorry for the ambient music, forgot to disable audio input in obs

I’ve noticed this with filmic in non-agx-versions of darktable as well. This might not be due to agx but something else. But I have not been able to reproduce the issue reliably enough yet.

This suggests it’s not an agx bug, then.

1 Like

Maybe something to do with the picker widget?

1 Like

It seems to correlate with picker usage for me, too. The color shift goes away if I move exposure even by a little bit.

If you turn on and off the high quality processing, does it fix the color? If yes, then it is this bug:

Please comment in that GitHub with your observations. I still see this bug in my system.

3 Likes

Yes it does fix it. Perfect, no need to open an issue then :smiley: I’ll leave a comment

1 Like

If you look at the histogram in vectorscope mode, the effect of AgX rotation can be seen: it is the same as on the vectorscope as if you were standing behind the color and looking toward the center. So, rotate blue right and it goes toward magenta; left: cyan. Red, right: orange. Red, left: magenta. Green, right: cyan; left yellow.

2 Likes

As a bit of feedback, using the OpenCL development version and no probs (so far :slight_smile: )
Ubuntu 22.04
Nvidia Geforce 1660 Super

Thanks for all your efforts Istvan, its great

3 Likes