I'm rendering my 3D scene as 16bit EXRs, then I'd like comp, postfx & grade in Houdini, and finally render that out to 8bit tifs so I can convert to mp4 with ffmpeg. This final step is what the problematic step.
Before my ROP I have a VOPCOP which converts my image from "ACEScg" to "Output - sRGB". And when I compare the image on my screen between "VOPCOP on and viewer OpenColorIO Transform disabled" to "VOPCOP off and viewer OpenColorIO Transform set to SRGB", the results are identical. So it seems that the workflow up to this point is good.
When I export this to tif however, an additional (gamma?) transform is applied in the ROP. I have tried a number of things but can't get the perfect results.
This is my reference. My VOPCOP transform (ACESCg to Output - SRGB) is disabled, Viewer transform is enabled.
Checking my VOPCOP transform: VOPCOP transform enabled, Viewer transform is disabled. This is identical to the previous image. So the VOPCOP transform is working correctly.
All of the following tests have the VOPCOP transform enabled.
ROP writing to TIF with "Convert to Image Format's Colorspace" enabled. Definitely very wrong.
ROP writing to TIF with "Convert to Image Format's Colorspace" disabled, and gamma=1. I would have hoped this to work. As I want to write the raw values at this stage after the VOPCOP transform. But it's much brighter. So something is still going on.
ROP writing to TIF with "Convert to Image Format's Colorspace" disabled, and gamma=1/2.2. This is very close to the reference image. However it is a bit higher contrast, and detail in shadows is lost.
ROP writing to TIF with "Convert to Image Format's Colorspace" disabled, and gamma=1/2.4. This is also very close to the reference image, but slightly darker. And more off than gamma=1/2.2
If gamma=1/2.2 would have provided perfect results, I would have assumed that the TIF export is adding an additional gamma correction of 2.2, so I would need to counter that by setting gamma=1/2.2 in the ROP node. But even that is not producing perfect results. And I feel like there should be some theory going on here and I shouldn't have to trial and error find the perfect gamma to match the output.

