Tonemapping
[neuray Services API]
Description
Render tonemapping is a built in feature of neuray Services. Tonemapping is enabled by attaching the following attribute to the scenes camera:
-
attribute string "tm_tonemapper" "tonemapper_name"
-
mia_exposure_photographic
-
mia_exposure_simple
-
max_tone_op_log
All rendered images are tonemapped except in the following cases:
-
the "sketch" renderer is used. This renderer does not require tonemapping.
-
the "iray", "hybrid" or "preview" renderer is used, the iray internal tonemapper is enabled and the configured tonemapper is "mia_exposure_photographic". These renderers will provide the tonemapping internally.
-
attribute string "tm_override"
-
"on" - tonemapping is always applied
-
"off" - tonemapping is never applied
-
"auto" - the above tonemapping application algorithm is used.
Note that if the user implements a custom render command then automatic tonemapping will not occur. To tonemap the canvas the user will need to send the post render event in both pre and post tonemapping phases to tonemap the canvas.