Tonemapping is a technique that converts color values from a high dynamic range (HDR) to a low dynamic range (LDR) a display can output.
The tonemapping shader is directly integrated into the Viz Engine Render Pipeline and is applied as the last step of the main rendering process, just before the image is processed for video output. The filmic tonemapping operator proposed by John Hable is used.
To enable the tonemapping post effect, go to the Scene's Rendering Settings and enable tonemapping under Lens Effects. Be sure to enable post-processing effects in the Scene Editor to have a preview of it while editing its properties. When the tonemapping post process effect is enabled, a tonemapping node is added to the Render Graph, which contains values to configure the tonemapping curve, contrast, exposure and lift, gamma and gain.
The order of the adjustments to the input color is:
Exposure
Saturation
Contrast
Tonemap
Lift/Gamma/Gain
Exposure / Saturation / Contrast
Parameter | Description |
---|---|
| Adjusts the exposure of the input pixels. |
| Adjusts the saturation of the input pixels. |
| Adjusts the contrast of the input pixels. |
Examples
Screenshot | Information |
---|---|
Default Settings
| |
| |
| |
|
Tonemapping Operator
The function that is applied on the HDR input colors can be configured using multiple parameters in the Render Graph node. To see how the operator works check out the interactive graph.
Parameters
Parameter | Description |
---|---|
| Defines the shape of the curve. |
| Defines the value in the input that translates to All values below are squeezed into the range from |
Examples
Screenshot | Information |
---|---|
Tonemapping Disabled | |
Tonemapping Enabled Default values. | |
Tonemapping Enabled Adjusted values compared to the default ones, to have a slightly improved saturation. |
Color Correction
Color correction is done after tonemapping and applies the so called Lift, Gamma and Gain input values: output = (input * gain + lift) ^ gamma.
The formula being used is mentioned in https://en.wikipedia.org/wiki/ASC_CDL. To see what the separate values do check out the interactive graph.
Parameters
Parameter | Type | Description |
---|---|---|
| Multiplier | Adjusts highlights. |
| Offset | Adjusts brightness. |
| Exponent | Adjusts mid-tones. |
Examples
Screenshot | Description |
---|---|
Default Settings
for red, green and blue channels. | |
Adjusted | |
Adjusted | |
Adjusted |
Credits
Environment image is taken from https://hdrihaven.com/hdri/?h=leadenhall_market.