ホーム 暮らし What is DCTL? A comprehensive guide from the differences with LUTs to installation and usage

What is DCTL? A comprehensive guide from the differences with LUTs to installation and usage

藤崎 健人 藤崎 健人 • 更新: • 公開: • 読了約 20 分
目次

■ That "one last step" after applying a LUT

n7db3eb029f5d

You apply a LUT. It looks good. But you want the highlights to have a bit more depth. You want to increase the saturation, but you don't want to touch the orange in the skin tones. You want to set the strength to about 70%—.

Since a LUT is a "finished conversion table," you can only choose to apply it or not, or at best, reduce its intensity. There is no way to tweak the contents.

DCTL is what breaks through that ceiling.

As a heads-up, you need DaVinci Resolve Studio to use DCTL. It does not work in the free version. Please check this before reading further.

By the way, I made a DCTL like this!


■ What is DCTL

DCTL (DaVinci Color Transform Language) is a programming language for writing color transforms that runs within DaVinci Resolve. Using a syntax very similar to C, you describe "how to calculate the output from the input color" as a mathematical formula.

The written .dctl file is loaded by Resolve and executed pixel by pixel on the GPU. In other words, while a LUT distributes the "results" of a conversion, DCTL is a mechanism that distributes the "calculation formula itself" for the conversion.

There are three key points.

・You can create your own UI such as sliders and checkboxes
・Unlike LUTs, there is no loss of precision, and colors outside the exposure or range are less likely to break
・Since it is executed on the GPU, you can push the processing to the limit without stopping playback even with heavy tasks

As mentioned at the beginning, DCTL is a feature of the Studio version. If you try to load a .dctl file in the free version, a dialog box for purchasing the Studio version will appear and that's it. It doesn't mean it's an error; it means it simply cannot be used.

■ Differences from LUTs

  • Contents ... LUTs are numerical tables listing conversion results. DCTLs are conversion formulas (code).

  • Execution ... LUTs interpolate between grid points for an approximation. DCTLs calculate the formula directly on the GPU.

  • Precision ... LUTs have errors proportional to the coarseness of the grid. DCTLs have no errors as they calculate using floating-point numbers.

  • Adjustment ... LUTs only allow for reducing intensity. DCTLs allow for free manipulation of parameters via a UI.

  • Colors outside the range ... LUTs are prone to clipping. DCTLs can handle them as they are.

  • Conditional branching ... Not possible with LUTs. Possible with DCTLs (e.g., "only for skin hues").

  • Editing content ... LUTs are essentially impossible to edit. DCTLs are text-based, so they can be read and modified (*excluding those distributed with encryption).

In simple terms, a LUT is a photograph, while a DCTL is a recipe. A photograph just reproduces what you see, but a recipe allows you to change the quantities.

■ What can you do with DCTL?

・Film emulation (halation, grain, color casts)
・Color matching between cameras
・Corrections targeting specific hues or luminance
・Formula-based looks that cannot be expressed with LUTs (tone curves, gamut mapping)
・Effects such as grain, bloom, and aberrations


Installation Method

1. Open the DCTL folder

.dctl files are recognized simply by placing them in the designated location.

macOS

/Library/Application Support/Blackmagic Design/DaVinci Resolve/LUT/

Windows

C:\ProgramData\Blackmagic Design\DaVinci Resolve\Support\LUT\

You can also open it from the Resolve menu:
Preferences → Color → Open LUT Folder (Project Settings → Color Management → Open LUT Folder)


2. Copy the file

Place the downloaded .dctl file into that folder. You can also create subfolders to organize them (they will appear as folders in the LUT list).

3. Restart Resolve

Restart DaVinci Resolve. The DCTL list in the Inspector is loaded at startup, so pressing Update Lists will not show new DCTLs.

You are now ready.

How to use

The following is how to apply a DCTL.

Apply as a DCTL OFX (adjust parameters)

This is the true power of DCTL.

  1. Open Effects (OpenFX) in the top right of the Color page

  2. ResolveFX Color → DCTL and drag it onto a node

  3. Select the file you want to use from DCTL List in the Inspector

  4. Sliders and checkboxes will appear → adjust in real-time



Unlike LUTs, where you just "apply and finish," the decisive difference is that you can fine-tune the values to be optimal for each piece of footage.

Example of node structure
[01 露出補正] → [02 DCTL:ルック] → [03 出力変換]
                       ↑ここにDCTL OFX

Place DCTLs that create a look before the output transform (the process of converting Log to display color). The output transform must always be at the very end. Keep them in separate nodes so you can turn off just the DCTL to compare, so always keep them independent.

Optical FX should be placed even earlier.

Optical FX like lens diffusion or anamorphic flares should be processed while still in Log space (Log to Log) for the correct positioning. Since these are phenomena that naturally occur within the lens, applying them after converting to the display color space is physically incorrect. Insert them before the look. The overall order is "Exposure → Diffusion → Flare → Look → Output Transform."

Common pitfalls

DCTL does not appear in the list
→ You haven't restarted Resolve, or the file location is wrong. Please check the path again.

The screen turns solid black/red
→ There is an error in the DCTL code. Open Workspace → Console to see the error details. It will show the line number, so check that.

Playback is sluggish
→ DCTL runs on the GPU. Stacking multiple DCTLs or using ones with heavy processing (like grain or blur) will increase GPU load. Please enable proxy playback or render cache.

Changes are not reflected after editing
→ Press Update Lists again. If that doesn't work, reopening the project is the most reliable method.

You can write DCTLs yourself

.dctl is just a text file. Let's try looking at a minimal DCTL that only changes brightness.

DEFINE_UI_PARAMS(gain, Gain, DCTLUI_SLIDER_FLOAT, 1.0, 0.0, 4.0, 0.01)

DEVICE float3 transform(int p_Width, int p_Height, int p_X, int p_Y,
                            float p_R, float p_G, float p_B)

    float3 rgb = make_float3(p_R, p_G, p_B);

    rgb.x = rgb.x * gain;
    rgb.y = rgb.y * gain;
    rgb.z = rgb.z * gain;

    return rgb;
  • A single line of DEFINE_UI_PARAMS becomes an Inspector slider directly

  • The transform function is called once for every single pixel

  • p_R, p_G, p_B are the input colors, and the return value is the output color

That is all there is to it. Save it in a text editor and restart Resolve, and it is already your tool.

You can easily replicate this much.

The problem lies beyond that. Film halation, anamorphic flares, lens diffusion, color casts specific to emulsions—when it comes to translating the "physics of lenses and emulsions" into mathematical formulas without breaking them, the conversation gets deep very quickly. I spend my time on that, creating and distributing DCTLs that you can use as-is.

Summary

  • DCTL is a language for writing "calculation formulas" for color conversion. It is a superior alternative to LUTs

  • DaVinci Resolve Studio is required for use (it does not work in the free version)

  • Place it in the LUT folder and restart Resolve to use it

  • Apply it via the DCTL OFX to fine-tune it to your footage using sliders

If you feel like you are "one step away" with LUTs, DCTL will definitely bridge that gap.

■ Watch in video

I have turned the content of this article into a video. Japanese narration and Japanese subtitles, 4 minutes and 49 seconds.

By the way, I made this kind of DCTL!


If you found this article helpful, I would appreciate it if you could like and follow.

同じカテゴリの記事

藤崎 健人

芸能取材歴10年のデスク。所属事務所の公式リリース、番組公式サイト、配信サービスの告知を一次情報として採用し、裏付けの取れない内容は記事にしていません。

おすすめの関連記事