Hello,
Some time ago, I came up with a simple tone mapping technique that I called “Local HDR Blending” which was basically based on the local operator method (you can find that tut here)
However that technique was only viable with images loaded within ImageEditor, and was very hard to keep detail, saturation and original hues in very bright areas. Later, I found a way to implement a kind of logaritmic tone mapping with a mix of FPGamma, HDRExposure and WaveFIlter. This method provided better behavior on very bright areas, but in detriment of overall saturation and contrast. Besides none of these methods have real-time preview.
But all those disadvantages vanish if we solve the tone mapping within the Image Filter Node Editor. This method is is a mix of the log tone mapping and the local operator method, and it make use of 3 of my favorite gamma correction nodes. This is a simple implementation but you can add some other functions from here:

This setup assumes you are working within a linear color space workflow. Understanding its operation principle can help us to know how to use it:
-
We get the output render (linear) and flatten the ratio between bright and dark areas by changing the gamma distribution with an exponent of 5.5556 to take everithing close to the middle point. I’m using Aurora’s Gamma Correction node here and this node must be locked (so don’t touch it!).
-
After this gamma correction, all high lights will need an exposure adjustment. To find the bright zones (or even better, to define which areas of the image we’ll consider bright), we take the linear output render and gamma correct it (with Aurora’s Gamma Correction node) according to our visual perception (this depends on your working color space gamma, but commonly an exponent of 2.2 or 1.8 will work- but not less). Also you may want to change this exponent to use it as a roll off tool by playing with higher values. This color output is converted to gray scale (color=>scalar) to be used in opacity channel of the mixer node. If your render doesn’t have bright areas extremely high, you can set it up in Minimum mode, otherwise, do use Luma.
-
For diminishing the exposure of bright areas and for tuning the details in these areas we use the Michael Wolf’s Simple Colour Corrector node. This node is very useful because we can adjust the brightness (exposure in this case) and gamma (the strength and range in bright areas) in the same panel and real-time (in ImageFilter Node Editor preview or Viper). I wouldn’t recommend to change anything else at this stage.
-
Once this adjustments are made in the light intensities values flattened logarithmically, we linearize the result again with the inverse exponent (.225) - by using Aurora’s Gamma Correction node - and gamma correct this output result again according to the gamma of our output medium (log/rec 709/sRGB) by using the SG_CCFilter. Both nodes must be locked (so don’t touch them!).
-
Later come the final adjustments (you can use Michael Wolf’s Simple Colour Corrector node or LW’s Color Tool - just notice both offers slightly different results). At this point Brightness works as our white clip parameter and Contrast works as our black clip parameter. Saturation and Hue play as themselves
At this point we might want to separate this output in its RGB channels and adjust gamma, hue, saturation and contrast levels for RGB channels independently with Michael Wolf’s Simple Colour Corrector node or we can colorize the image with several other setups.
Here are some HDRI tonemapped with this method:

A comparison between the linear version, the gamma corrected version, the previus tonemapping method, and the new nodal method. Notice how we can get more details in bright areas by avoiding glare effects and keepping better color saturation and hues with the nodal tonemapping - this image has a ratio about 1:300000)



This nodal setup can be useful for preview purposes within LW; so don’t save any image with the filter enabled if you gonna finish the image in a compossiting package. This nodal setup can be used together with the SG_CCTools.
If you want to play, modify or enhance this nodal network, you can get it here.
Hope to see some nice tests with this nodal setup 
Gerardo
.







