3D LUT module in darktable 2.7 (dev)

@David_Tschumperle Does the compressed gmic file have a sections like https://gmic.eu/color_presets/index.shtml or is it just the compressed LUT data without any representation.

If not would it make sense to split it into logical sections like on the website?

I’m talking about https://framagit.org/dtschump/gmic/blob/master/resources/gmic_cluts.gmz

Agreed, that at least breaks the long list, turning the usage easier.
I’m wondering if people would not like to be able to make their own selection & groups, depending on their taste and usage … b&w / color, film / color grading, or many others approaches. Would that make sense ?

I would keep what gmic offers, but you could allow to define some as ‘favorites’ and then have a tab which lists them …

I’ve changed the lut names list from combox to treeview list. This handles smoothly large file like gmic_cluts.gmz.

  • scroll bar
  • filter entry
  • up /down arrow to change quickly the lut

image

3 Likes

Hi, I have build darktable from git, when I start it it shows 2.7.0 but I cant find the lut 3D module.
Is there some specific branch or something that I need to use?

Did you enter the 3D LUT root folder in the settings?

In case of dt master the module should appear the “more modules” list (no reason to fail).
The PR #2534 is not merged. One difficulty is the dependency on G’MIC which brings discussion in the dev team. For this version, if G’MIC is not properly installed (G’MIC library available) the module lut3d doesn’t start.

I fixed it, I think i was building other branch.

Compressed 3d lut are now available for lut3d module on dt master.

If you build dt yourself make sure you have the GMIC library at a version above 2.7.
For windows GMIC 2.8 is available on MSYS2.
$ pacman -S mingw-w64-x86_64-gmic

For linux I’ve found it here for Ubuntu and Debian.

I don’t know anything about Mac OS. Hopefully somebody will help us on this.

You can download the up-to-date GMIC compressed lut file gmic_clut.gmz.

If you need to manipulate 3D lut file, GMIC can help you. You may find useful some GMIC commands above in this thread and at the end of this post on darktable site.

For performance reason the compressed luts are cached. Cache folder and cache files are shared with GMIC.

As somebody already said, enjoy.

2 Likes

There is an (issue #4076) with a build on opensuze and gmic 2.8.1-1.1

dt stops with this error message:

symbol lookup error: /opt/darktable/lib64/darktable/plugins/liblut3d.so: undefined symbol: _ZN12cimg_library8CImgListIfE6assignEj

Any help is welcome.

I’ve commented.

1 Like

@phweyland I wonder how is the gmic_cluts.gmz meant to be used in LUT3D? Can it be chosen in the LUT file parameter of the module? I’m on darktable 3.0.1 with GMIC 2.9 on Ubuntu but it only gives me the options of .cube and .png (haldclut). It says “invalid” when I select gmic_cluts.gmz.

Should appear in your file list as png or cube files do.
I’m not aware about G’MIC 2.9. For me the highest version should be something like 2.8.x…
You should have at least G’MIC 2.7 to make the compressed lut work.
Do you build dt yourself ?

  1. which package are you using?
  2. it might be the package is not built with gmic support.

ok no debian or ubuntu version ships with a recent enough gmic version to build the gmic LUT support. so until someone updates the gmic packages on debian/ubuntu, you wont get it.

Oh sorry, what I have is 2.8.4.

No, I got mine via PPA.

As I install the GMIC package it put gmic_cluts.gmz under gimp plugin directory. I then tried to use this gmz library in darktable.

gmic_cluts.gmz should be under your lut3d root folder (as defined in dt configuration)

darktable needs libgmic 2.7.0 and all debian versions are stuck at 2.4.5.

1 Like

I tried to follow the advice given here to the best of my ability with no success.

$ darktable --version
this is darktable 3.2.1

$ dpkg -l libgmic1 | grep gmic
ii libgmic1:amd64 1:2.9.1-0bionic1 amd64 GREYC’s Magic for Image Computing - shared library

Ubuntu Mate 18.04 LTS

darktable → lut 3D module → select folder → all files → select gmic_cluts.gmz (3.2 MB)

Resulting screen display in lut 3D module:
“INVALID >> gmic_cluts.gmz”

Any pointers?
Would the darktable docs benefit from detailed instructions on installing dependencies for the most commonly used linux distribution and instructions for managing and using compressed luts?
Where to download and place files in the file system, what are common workflows for managing compressed luts, where do I click in darktable to make it work? I have listed my UI workflow above with → arrows because I am currently not feeling well informed by the available documentation.

Thank you for any help.

@Drew welcome! How did you install dt?