Global Tonemapping Operators

Implementation of various Global Tonemapping Operators

Updated: 25 November 2018

Author: KelSolaar

Compatible Nuke versions: 6.3 or later

Compatibility: Linux, Mac, Windows

GLOBAL TONEMAPPING OPERATORS 1.5

 

colour-science.org - July 10, 2016

 

The attached file is a playground for implementation of various Global Tonemapping Operators. They are available as groups and can be copy / pasted quickly from the file to another.

 

The following operators are currently implemented:

  • Simple
  • Normalise
  • Gamma
  • Logarithmic
  • Exponential
  • Schlick (1994)
  • Reinhard (2004)
  • Filmic

Examples with the following source image: http://rit-mcsl.org/fairchild/HDRPS/Scenes/HDRMark.html

 

Because Nuke is unable to perform realtime computation of image average, min and max values, some operators need a domain precomputation.

 

More information is available in the following IPython Notebook: https://github.com/colour-science/colour-hdri/blob/master/colour_hdri/examples/example_global_tonemapping_operators.ipynb

 

Latest version of the file will always be available at this url: https://github.com/colour-science/colour-nuke/blob/master/colour_nuke/scripts/global_tonemapping_operators.nk

Copyright (c) - 2015, Colour Developers
All rights reserved.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
* Neither the name of the Colour Developers nor the
names of its contributors may be used to endorse or promote products
derived from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 'AS IS' AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL BE LIABLE FOR ANY
DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

Sign in or register to download or rate.