Page 1 of 1

Apply tonemapping to aovs

Unread postPosted: Mon Jun 12, 2017 11:52 am
by monkeybrain
It would be awesome to be able to apply the tonemapping from the renderer also to the aovs. Right now only the final RGB output is tonemapped, while all the framebuffers are kept in full range. To fight fireflies it would be nice to be have the option to also apply it to the framebuffer aovs.

Cheers,
Tobi

Re: Apply tonemapping to aovs

Unread postPosted: Fri Jun 16, 2017 11:12 am
by isoyann
Hi,

Currently, AOV can be clamped using the sample clamping attributes (only indirect rays are clamped, so you keep most of your dynamic range) in the raytracer. This is a better way to remove firefly (direct rays benefit from importance sampling and don't create firefly). Only LPE can't be clamped (this will be supported too in future).

Cheers,

Yann

Re: Apply tonemapping to aovs

Unread postPosted: Fri Jun 16, 2017 12:28 pm
by monkeybrain
Hi,

yeah true that, the indirect sample clamping works well and is very good at keeping the dynamic range in the image. Still we have some cases where superbright specular reflections create very twinkly highlights on very small edges. The only way to fight this right now is to either make them like 1% rough, so they benefit from glossy sampling and clamping or to render with super high anti aliasing samples, which is seldom feasable. Maybe fireflies is the wrong term.
Tonemapping the beauty to a range like 0-3 got rid of nearly all of those isntantly, while retaining enough range for comp. So I still think there is a place for direct sample clamping (like Arnold's sample clamping setting).
Maybe introduce a way to clamp specular values or create a checkbox to apply the layer tonemapping also to the aovs written out.

Would be awesome. Cheers,
Tobias