Skip to content

Adding a user viewing LUT

Doug Walker edited this page Apr 15, 2023 · 2 revisions

user-viewing-lut-base.ocio

The base config in this case is the ACES CG config: cg-config-v1.0.0_aces-v1.3_ocio-v2.1

user-viewing-lut-input.ocio

ocio_profile_version: 2.1

search_path: .

name: customized_cg-config-v1.0.0_aces-v1.3_ocio-v2.1
description: |
  A modified version of the ACES CG config which adds the following custom LUTS:
  - Viewing LUT for our current show

displays:
  sRGB - Display:
    - !<View> {name: Custom show LUT, colorspace: srgb_show_lut}

colorspaces:

  - !<ColorSpace>
    name: srgb_show_lut
    description: |
      Show LUT converting ACEScct to sRGB.
    isdata: false
    from_reference: !<GroupTransform>
      children:
        - !<ColorSpaceTransform> {src: ACES2065-1, dst: ACEScct}
        - !<FileTransform> {src: acescct_to_srgb_showname.cube, interpolation: tetrahedral}

user-viewing-lut-merged.ocio

The primary differences is that the new color space is added at the top of the base colorspaces section and the new view is added as the first element in the `sRGB - Display` section. The search_path includes the local (aka working) directory. The assumption is that the user's LUT file will be in the same directory as the merged config file. The name and description are updated to prevent any confusion with the merged config and the official CG config.

Diff of base and merged configs:

% diff user-viewing-lut-base.ocio user-viewing-lut-merged.ocio
5c5
< search_path: ""
---
> search_path: .
8c8
< name: cg-config-v1.0.0_aces-v1.3_ocio-v2.1
---
> name: customized_cg-config-v1.0.0_aces-v1.3_ocio-v2.1
10,15c10,11
<   Academy Color Encoding System - CG Config [COLORSPACES v1.0.0] [ACES v1.3] [OCIO v2.1]
<   --------------------------------------------------------------------------------------
<
<   This minimalistic "OpenColorIO" config is geared toward computer graphics artists requiring a lean config that does not include camera colorspaces and the less common displays and looks.
<
<   Generated with "OpenColorIO-Config-ACES" v1.0.0 on the 2022/10/26 at 05:59.
---
>   A modified version of the ACES CG config which adds the following custom LUTS:
>   - Viewing LUT for our current show
39a36
>     - !<View> {name: Custom show LUT, colorspace: srgb_show_lut}
190a188,197
>     name: srgb_show_lut
>     description: |
>       Show LUT converting ACEScct to sRGB.
>     isdata: false
>     from_reference: !<GroupTransform>
>       children:
>         - !<ColorSpaceTransform> {src: ACES2065-1, dst: ACEScct}
>         - !<FileTransform> {src: acescct_to_srgb_showname.cube, interpolation: tetrahedral}
>
>   - !<ColorSpace>