# 色彩管理

Blender's color management is based on the OpenColorIO library. By using the same OpenColorIO configuration in multiple applications, the same color spaces and transforms will be available for consistent results.

## 工作流程

### 场景线性色彩空间

For correct results, different Color Spaces are needed for rendering, display and storage of images. Rendering and compositing is best done in scene linear color space, which corresponds more closely to nature, and makes computations more physically accurate.

## 渲染设置

Render Properties ‣ Color Management

These are color management settings that are used across Blender. These color management settings are Scene specific so settings can be customized per Scene. Color management can also be overridden when saving images; this behavior can be set in the Output Color Management Properties.

sRGB

Used by most displays.

XYZ

Commonly used by digital projectors.

Disables color management.

Gamma

The color space that the Sequencer operates in. By default, the Sequencer operates in sRGB space, but it can also be set to work in Linear space like the Compositing nodes, or another color space. Different color spaces will give different results for color correction, crossfades, and other operations.

The list of color spaces depends on the active OCIO config. The default supported color spaces are described in detail here: Default OpenColorIO Configuration

### 使用曲线

Adjust RGB Curves to control the image colors before the color space conversion. Read more about using the 曲线部件.

## 图像文件

Image data-blocks will always store float buffers in memory in the scene linear color space, while a byte buffer in memory and files in a drive are stored in the specified color space setting.

By default, only renders are displayed and saved with the render View Transformation applied. These images are the "Render Result" and "Viewer" image data-blocks, and the files saved directly to a drive with the Render Animation operator. However, when loading a render saved to an intermediate OpenEXR file, Blender cannot detect automatically that this is a render (it could be e.g. an image texture or displacement map). We need to specify that this is a render and that we want the transformations applied, with these two settings:

## OpenColorIO配置

Blender comes with a standard OpenColorIO configuration that contains a number of useful display devices and view transforms. The reference linear Color Space used is the linear color space with Rec. 709 chromaticities and D65 white point.

However, OpenColorIO is also designed to give a consistent user experience across multiple applications, and for this, a single shared configuration file can be used. Blender will use the standard OCIO environment variable to read an OpenColorIO configuration other than the default Blender one. More information about how to set up such a workflow can be found on the OpenColorIO website.

Blender目前使用以下色彩空间规则：

scene_linear

data

aces_interchange

ACES2065-1 color space. Used to derive chromaticities of the scene_linear color space, for effects such as blackbody emission.

color_picking

default_sequencer

default_byte

default_float

The standard Blender configuration includes support for saving and loading images in ACES (code and documentation) color spaces. However, the ACES gamut is larger than the Rec. 709 gamut, so for best results, an ACES specific configuration file should be used. OpenColorIO provides an ACES configuration file, though it may need a few more tweaks to be usable in production.

## Default OpenColorIO Configuration

Color Spaces

Blender's OCIO configuration file is equipped by default to read/write files in these color spaces:

sRGB

Standard RGB display space using Rec. 709 chromaticities and a D65 white point.

Blender's native linear space meaning there is no gamma mapping, using Linear Rec. 709 chromaticities and a D65 white point.

Linear ACES

Also known as ACES2065-1, which is an ACES color space using the AP0 color primaries, a D60 white point and a linear transfer function. This color space is meant to store and transfer data with the most amount of possible color information.

Linear ACEScg

An ACES color space that is designed to be used for rendering and compositing. It uses the AP1 color primaries, a D60 white point, and a linear transfer function. While similar to ACES2065-1, this color space has a smaller color gamut. The smaller gamut allow it to better represent the colors that fit inside the CIE 1931 chromaticities diagram. Colors that lie outside the CIE 1931 chromaticities are generally not important to rendering and compositing because the human stimulus cannot represent these colors.

XYZ

Non-Color

Does not automatically convert to linear; same as Non-Color.

Filmic视图变换的中间日志颜色空间。

Filmic sRGB

Similar to sRGB but uses the Filmic view transform.