The OCIO spi-anim adds an s-shaped contrast curve to the standard sRGB gamma 2.2. An s-shaped curve emulates the toe and shoulder of film and looks nice. This can be done by using the OCIO option in the VFB (for the render), together with the VrayOCIOtex on all the diffuse textures. Works great.
So that got me to thinking: Another way to do an s-shaped contrast curve at the end of the render would simply be to use the curve CC in the VFB, adjusting the curve as desired. This could be written out from the VFB as a LUT to be used in Nuke. Cool.
However, as stated above, this contrast curve would also need to also be inversely applied to all the diffuse textures (in addition to the inverse gamma). This is where I get stuck, and my question comes in:
How could I inverse this S-shaped contrast curve made in the VFB, and apply it in Vray to the diffuse textures together with the degamma?
I suppose I could write out a .cube file LUT of the curve and read it this into a VrayOCIOtex set to fileTransform. However the inverse option does not work in this case. I believe I need to actually swap the X & Y on each curve point to invert it, but I'm not sure how to likewise change the tangent directions on those curve points to invert them.
So that got me to thinking: Another way to do an s-shaped contrast curve at the end of the render would simply be to use the curve CC in the VFB, adjusting the curve as desired. This could be written out from the VFB as a LUT to be used in Nuke. Cool.
However, as stated above, this contrast curve would also need to also be inversely applied to all the diffuse textures (in addition to the inverse gamma). This is where I get stuck, and my question comes in:
How could I inverse this S-shaped contrast curve made in the VFB, and apply it in Vray to the diffuse textures together with the degamma?
I suppose I could write out a .cube file LUT of the curve and read it this into a VrayOCIOtex set to fileTransform. However the inverse option does not work in this case. I believe I need to actually swap the X & Y on each curve point to invert it, but I'm not sure how to likewise change the tangent directions on those curve points to invert them.
Comment