Linear space compositing
What is it?
Linear compositing (also known as Linear light compositing or Scene-referred linear light compositing) is the process of combining images in linear space, which more accurately simulates how a camera (and the human eye) captures light.
Learn more about Compositing color space and Color management in Pixotope
Requirements
Linear compositing ideally requires an HDR video source.
If an SDR source (like Rec.709) is provided, we upsample the material to HDR. If the output color profile is the same as the input one, the sampling to and from HDR is lossless.
Learn more about how to Configure your color pipeline
Advantages
Traditional video mixing is done with images and videos that are encoded in video gamma space (Video space - legacy). This means that the pixel values in the images no longer have a 1:1 relationship with the light values they represent, and when we mix them we get unrealistic results. Historically, video gamma evolved as a technique to display an accurate tone curve on a CRT display and to compensate for the hardware transfer function. That constraint has continued despite the disappearance of CRT monitors.
A linear function is much truer to the behaviour of light and vision, where a dynamic range of that image is selected to be displayed on an output device. This is also seen in the photographic approach of “stopping up” or “stopping down” to display different aspects of the captured image.
Comparison of Pixotope's compositing modes
Out of focus
The bright sky on the top accurately bleeds over the darker areas. This is a naturally occurring effect where lighter areas “eat” into the dark regions as the image is defocussed. By contrast the video space defocus shows a growth and blur of the darker regions over the highlights.
![](../../__attachments/3757047833/blur_linear.0000.gif?inst-v=9a48e7bf-6403-4094-a858-ffe80445b919)
Linear space
![](../../__attachments/3757047833/blur_gamma.0000.gif?inst-v=9a48e7bf-6403-4094-a858-ffe80445b919)
Video space
Exposing the background
The bright sky on the top accurately bleeds over the fine hair.
![](../../__attachments/3757047833/bg_exposure_linear.gif?inst-v=9a48e7bf-6403-4094-a858-ffe80445b919)
Linear space
![](../../__attachments/3757047833/bg_exposure_gamma.gif?inst-v=9a48e7bf-6403-4094-a858-ffe80445b919)
Video space
Motion blur
The bright lights on the top create accurately exposed light streaks.
![](../../__attachments/3757047833/motionblur_linear.0000.gif?inst-v=9a48e7bf-6403-4094-a858-ffe80445b919)
Linear space
![](../../__attachments/3757047833/motionblur_gamma.0000.gif?inst-v=9a48e7bf-6403-4094-a858-ffe80445b919)
Video space