Unreal OCIO Setup

Lesson Plan

Download OCIO and configure Unreal to use OCIO for color management.

What is OCIO

Any time footage leaves the camera and enters your computer, or your video files move between programs, we need to think about the color pipeline:

  1. What color space the footage is coming from, and

  2. what color space the footage is going into.

For example, an annotated color pipeline from BURN Workflow looks like:

      Raw        ┌──────┐             Raw    ┌────────────►│  BRaw├───────────────────────────────────┐    │             └──────┘                                   │    │                                                        ▼    │                        sRGB                        ┌───────┐   ACES ┌──┴──┐  sRGB    ┌──────┐  Linear   ┌─────────┐         │Davinci├───────► │BMPCC├─────────►│Unreal├──────────►│Composure│         │Resolve│ └─────┘          └──┬───┘           └────┬────┘         │       │                     │                    │              └───────┘                     │                    ▼ sRGB             ▲                     │               ┌────────┐              │                     │sRGB           │LiveView│              │                     │Linear         └────────┘              │                     │                                       │                     ▼                                       │               ┌────────────┐ ACEScg   ┌──────┐  ACEScg      │               │Movie Render├─────────►│  Nuke├──────────────┘               │   Queue    │          └──────┘               └────────────┘

Unreal uses sRGB-Linear internally, but from the above diagram it will also need to convert from and into sRGB, and ACEScg.

OCIO makes converting between color spaces easy. In short OCIO is:

  1. A catalog of common color spaces.

  2. A set of tools for converting between those spaces.

At each junction in our pipeline, will need to tell Unreal:

  1. where to find the OCIO configs

  2. what color space we are converting from.

  3. what color space we are converting into.

Unreal and OCIO will handle the rest.

Where OCIO is Necessary

There are several places we will need OCIO with Unreal.

  1. Blackmagic Media Source Input and Output in Composure.

    1. The incoming camera footage must be mapped from sRGB to sRGB-Linear.

    2. The outgoing composure will be mapped from sRGB Linera to sRGB or Rec.709.

  2. Movie Render Queue needs to map from sRGB-Linear to ACEScg.

Downloading OCIO

  1. If you check here [OpenColorIO-103] it tells you to go here instead [ColourScience-ACES12].

  2. Don’t download the whole repository, It’s BIG, like 5GB. Instead click into the Releases section on the right:

  3. From here, download the latest configs as a much smaller 125MB zip.

  4. Save it somewhere you can access from Unreal.

Configuring Unreal

All OCIO transforms are expressed as from some space to another space. We need to select every space we intend to convert from, as well as every space we intend to convert into.

  1. Create an OpenColorIO Configuration from the Content Browser.

    Name it whatever you like, then double-click the configuration to edit:

    Browse to the OCIO configurations you downloaded earlier.

    Locate your config.ocio file in the corresponding version, we are using aces_1.1

  2. Add the following color spaces:

    Utility Utility - Linear - sRGB

    This is the default working space of Unreal. All conversions will either be from or to this space.

    ACES ACES - ACES2065-1

    Not necessarily used, but this is sort of the unviersal color space, and worth having around.

    ACES ACES - ACEScg

    We will render our footage to ACEScg.

    Output Output - Rec.709

    We will convert our live composure output to either Rec.709 or sRGB.

    Output Output - sRGB

    OCIO will let us use sRGB output also as an input.

This should cover everything we need. If you use other color spaces, add them to the list.

BMPCC4K sRGB HDMI Output

The BMPCC does not output sRGB by default. We will need to conimage it in Generate a LUT Color Space Transforms.