Skip to content

This set of DCTL scripts is about experimenting with the math behind color science, including LogC, ACES AP0, Cineon, and more.

Notifications You must be signed in to change notification settings

mikaelsundell/photographic-dctls

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Photographic DCTLs

License

Introduction

This set of DCTL scripts is about experimenting with the math behind color science, including LogC, ACES AP0, Cineon, and more. It's a creative, photography-inspired take, focusing on looks and print emulation techniques instead of strict technical workflows. The project is still evolving, so new ideas and techniques will be added over time. Some of the concepts are a bit experimental and might overlap with Resolve's built-in tools, and the file names or structure could change as things develop.

Change log:

Date Description
2025-06-15 PD-LogC3-FilmMatrix: Added legacy LogC3 film matrix
2025-06-15 PD-Transform: Fixed issue with sRGB in and out
2025-06-06 PD-Transform: Added support for DaVinci Wide Gamut
2025-06-03 PD-Transform: Fixed an issue with incorrect INGEN5 instead of INFILM5 enum

Installation and utils

To use these tools into your DaVinci Resolve setup, begin by cloning the git repository or download the release package, which contains the DCTLs and headers.

Run python(.exe) run.py install in your terminal to copy the *.dctl and *.h files to the DaVinci Resolve LUT DCTL folder, ensuring they're accessible within your Resolve environment. The files can also be manually copied to /Library/Application Support/Blackmagic Design/DaVinci Resolve/LUT/DCTL on Mac and C:\ProgramData\Blackmagic Design\DaVinci Resolve\Support\LUT\DCTLon Windows.

For added convenience, the run.py script is provided, enabling easy access to various resources.

The run.py script

To open the DCTL readme documentation:

./run.py readme

For exploring DCTL examples:

./run.py examples

To access the DaVinci Resolve log file and initiate a trace:

./run.py install

To install *.dctl and *.h into DCTL directory:

./run.py log

To make a snapshot of hte DaVinvi Resolve DCTL folder:

./run.py snapshot

Quick install for Windows users

./install.bat

Compatibility

All DCTLs are tested and confirmed to work with Metal, CUDA, and OpenCL on both Mac and Windows platforms.

DCTLs

Cineon DCTLs

PD-Cineon-Exposure

Cineon exposure from photographic stops, incorporating a zone based false color to aid in achieving correct exposure levels.

PD-Cineon-Exposure figure

PD-Cineon-Invert

Cineon negative inversion with precise control over the dmin ratio based inversion process using adjustable parameters such as density, bit depth, offset, and density scale. You can specify dmin base values manually as floating-point numbers (obtained from tools like Pixel Analyzer in Nuke or similar software) or sample them using a rectangular sampler from the border or other dmin base areas.

PD-Cineon-Invert.dctl figure

LogC3 and LogC4 DCTLs

PD-LogC-Exposure

LogC3 exposure from photographic stops, incorporating a zone based false color to aid in achieving correct exposure levels.

PD-LogC3-Exposure.dctl figure

PD-LogC-Print

PD-LogC3-Print.dctl figure

Made for print emulation, this DCTL applies DaVinci Resolve's built-in film looks to ARRI LogC3 and Cineon footage with adjustable controls for luminosity and color blending.

PD-LogC3-FilmMatrix

The film style matrix makes the color characteristics of the Log C image similar to negative film scanned on an ARRISCAN.

Utility DCTLs

PD-Grade

Grade adjustments, this DCTL is experimental code for lift, gamma, gain and log controls.

PD-Matrix

Matrix adjustments, a utility for copying matrix values.

PD-Stripify

Matrix adjustments, this DCTL simplifies the color palette by pushing colors into a warm and cool strip.

PD-Saturation

HSV-based adjustments, this DCTL provides a tool for fine-tuning saturation using saturation in HSV.

PD-Tonecurve

Tone curve adjustments for contrast, shoulder and toe controls.

PD-Transform

Color space transformations to and from CIE XYZ linear, tone compress, ootf and white point adaptation.

Supported color spaces
Color space Description
CIE XYZ Absolute colorimetric reference
AcesAP0 D60 ACES input primaries
AcesAP1 D60 ACES working space primaries
ARRI AWG3 D65 ARRI Wide Gamut 3
ARRI AWG4 D65 ARRI Wide Gamut 4
DaVinci Wide Gamut D65 Resolve-native wide gamut
Rec709 D65 HDTV color space
sRGB D65 Standard RGB
DCI-P3 'D60 sim' D60 DCI-P3 simulated for D60 viewing
DCI-P3 Theatrical D63 For cinema projection
DCI-P3 D65 DCI-P3 adapted to D65
Blackmagic Gen5 D65 Blackmagic Gen 5 camera space
Supported gamma encodings
Gamma Description
Linear Scene-linear light
AcesCC Log encoding for ACES
AcesCCT Log encoding, softer shadows
ARRI LogC3 ARRI’s legacy log curve
ARRI LogC4 ARRI’s updated log curve
Cineon Kodak's film scan log format
DaVinci Intermediate Resolve-native log transfer
sRGB / Gamma 2.2 Common for displays
Rec709 / Gamma 2.4 HDTV gamma
DCI-P3 / Gamma 2.6 Theatrical gamma
Blackmagic Film Blackmagic Film Gen5 log
Additional features
Feature Options
White Point Adaptation D60 → D65, D63 → D65, D65 → D60, D65 → D63
Tone Compression Reinhard, Inverse Reinhard
Tone OOTF Mapping DCI-P3 → Rec709, sRGB → Rec709, Rec709 → DCI-P3
Exposure Index (EI) For LogC3: EI 160 – EI 1600

Reference charts

Reference charts for testing and verifying DCTLs. Additional formats are available in the Logctool project README:

ACES Macbeth 50D 5203 EXR from rawtoaces

logctool_LogC3_DCI_2K figure

LogC3 stepchart - EXR 2K LogC3 encoding

llogctool_LogC3_stepchart_DCI_2K figure

LogC3 colorchecker - EXR 2K LogC3 encoding

logctool_LogC3_colorchecker_DCI_2K figure

References

Github projects

Wikipedia

Format specifications

DCTLs, apps and resources

Utilities

Web Resources

About

This set of DCTL scripts is about experimenting with the math behind color science, including LogC, ACES AP0, Cineon, and more.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published