Page 3 of 3
Re: exr image output
Posted: Wed Nov 25, 2020 12:32 pm
by bartek_zgo
Thanks CodeHD for you answer.
Does it mean that I only need to add TONEMAP_LINEAR to image pipeline and scale it with 0.39 factor?
Re: exr image output
Posted: Wed Nov 25, 2020 12:44 pm
by CodeHD
No, the factor 0.39 was the ratio between the scale factors for different gamma, not the scale factor itself. At gamma 2.2, this evaluates to 2.465e-4.
Re: exr image output
Posted: Wed Nov 25, 2020 12:54 pm
by Dade
CodeHD wrote: Wed Nov 25, 2020 12:09 pm
If we compute the ratio of this factor for gamma 2.2 and 1.0 we get 0.39.
It is not a linear space. A fixed scale can not fix the problem but I assume it is exactly what you are trying to show.
Re: exr image output
Posted: Wed Nov 25, 2020 12:58 pm
by CodeHD
Dade wrote: Wed Nov 25, 2020 12:54 pm
It is not a linear space. A fixed scale can not fix the problem but I assume it is exactly what you are trying to show.
Yes, the factor 0.39 is specific to the LUXLINEAR tonemapper when comparing between gamma 1.0 and 2.2.
Re: exr image output
Posted: Thu Dec 03, 2020 8:29 am
by bartek_zgo
Thanks a lot CodeHD. Your solution is exactly what I needed. Finally exr is identical to png
I post the final pipeline code. Maybe someone will have the same problem
Code: Select all
film.imagepipelines.1.0.type = "NOP"
film.imagepipelines.1.1.type = "NOP"
film.imagepipelines.1.2.type = "TONEMAP_LUXLINEAR"
film.imagepipelines.1.2.sensitivity = "100"
film.imagepipelines.1.2.exposure = 0.1
film.imagepipelines.1.2.fstop = 22
film.imagepipelines.1.3.type = "GAMMA_CORRECTION"
film.imagepipelines.1.3.value = "2.2"
film.outputs.2.type = "RGB_IMAGEPIPELINE"
film.outputs.2.index = 1
film.outputs.2.filename = "c:\Bartek\stack\LuxCoreTests\exrGammaProblems\rgb_g22.png"
film.imagepipelines.3.0.type = "NOP"
film.imagepipelines.3.1.type = "NOP"
film.imagepipelines.3.2.type = "TONEMAP_LUXLINEAR"
film.imagepipelines.3.2.sensitivity = "100"
film.imagepipelines.3.2.exposure = 0.1
film.imagepipelines.3.2.fstop = 22
film.imagepipelines.3.3.type = "TONEMAP_LINEAR"
film.imagepipelines.3.3.scale = "0.39"
film.outputs.6.type = "RGB_IMAGEPIPELINE"
film.outputs.6.index = 3
film.outputs.6.filename = "c:\Bartek\stack\LuxCoreTests\exrGammaProblems\rgb_noGamma_tonemaper.exr"