AfterEffects

About gamma and tone response

A color space’s tone response is the relationship of light intensity to the signal that creates or records (perceives) the light.

The human visual system does not respond linearly to light. In other words, our perception of how bright a light is does not double when twice as many photons hit our eyes. Similarly, a CRT monitor’s display elements do not emit light that is twice as bright when a voltage twice as great is applied. The relationship of light intensity to signal intensity for a display device is expressed by a power function. The exponent of this power function is called gamma. The relationship of light intensity to signal intensity for an input device is the inverse of the relationship for an output device, though the gamma values may differ for input and output devices to accommodate the difference between scene lighting and lighting of the viewing environment.

Raising any number to the power of 1 gives the original number as a result. A gamma of 1.0 is used to express the behavior of light in the natural world, outside the context of our nonlinear perceptual systems. A system with gamma of 1.0 is sometimes said to operate in linear light, whereas a system encoded with a gamma other than 1.0 to match the human visual system is said to be perceptual.

Note: Moving the midtone slider (such as the Levels effect’s Gamma control) in a color-correction histogram has the same result as modifying gamma, changing the tone response curve without moving the white point. Modifying the curve in the Curves effect also modifies tone response, but not necessarily with a gamma curve.

If you have enabled color management (by specifying a working color space), you can perform all color operations in linear light by linearizing the working color space. A linearized color space uses the same primaries and white point as the nonlinear version; the tone response curve is just made straight.

If you have not enabled color management, you can still perform blending operations using a gamma of 1.0.

The gamma value for an entire system—from capture, through production, to display in the viewing environment—is the product of the gamma values used for each of the phases in the system. This product is not always 1.0, as it would be if the operations performed for encoding exactly matched (inverted) the operations performed for decoding. One reason for a system gamma other than 1.0 is that there is often a difference between the lighting conditions in which a scene is captured and the lighting conditions in which it is viewed. (Consider that you usually watch a movie in a dim environment, but the scenes aren’t normally shot in a dim environment.)

For example, the device gamma for an HD camera is approximately 1/1.9, and the device gamma for an HD display is approximately 2.2. Multiplying these values gives a system gamma of approximately 1.15, which is appropriate for the somewhat dim television viewing conditions of a typical living room. The system gamma for motion picture production is much higher (approximately 1.5–2.5) to accommodate the darker viewing environment of a movie theater. The gamma for the film negative is approximately 1/1.7, and the gamma for the projection film is approximately 3–4.

After Effects 7.0 and earlier used QuickTime codecs to decode several kinds of media, and the gamma adjustments performed on Windows were different from the gamma adjustments performed on Mac OS. The gamma adjustments performed by After Effects CS3 differ from the gamma adjustments performed by these QuickTime codecs. Gamma adjustments performed by After Effects CS3 on Windows are the same as gamma adjustments performed by After Effects CS3 on Mac OS. Also, by not using QuickTime codecs, After Effects preserves overbrights in 32-bpc projects. To avoid color shifts when working with projects created in After Effects 7.0 or earlier, or to match the colors in a project created in After Effects 7.0 or earlier, select Match Legacy After Effects QuickTime Gamma Adjustments in the Project Settings dialog box. This option is selected by default for projects created in After Effects 7.0 or earlier. You should create new projects without this option selected.
Note: On Mac OS running on a PowerPC processor, QuickTime codecs are used for some formats (including DV, 2vuy, and v210), whether or not you select Match Legacy After Effects QuickTime Gamma Adjustments. However, selecting this option does modify the gamma adjustments used so that they match the behavior of After Effects 7.0 and earlier.