Re: Reversed transform for a OCIO::DisplayTransform
Joseph Slomka <joseph...@...>
Remember that colorspaces can be defined to and from the reference. You can manually define the inverse and come up with an inverse 3d lut for the color picker that is close enough to fully inverted. I don't believe that OCIO inverts any 3d luts, even if you had a unity lut where rgb in = rgb out. Typically the design of OCIO does not automatically do anything that will get you into trouble. You have to deliberately make those choices. Example code below. -Joseph cs = OCIO.ColorSpace(family='kodak',name='kdk2383') cs.setDescription("kdk2383: Kodak Vision stock") cs.setBitDepth(OCIO.Constants.BIT_DEPTH_UINT10) # this sets the conversion to reference XYZ from film log groupTransform = OCIO.GroupTransform() groupTransform.push_back(OCIO.FileTransform('2383_to_bt1886.3dl',interpolation=OCIO.Constants.INTERP_LINEAR)) groupTransform.push_back(OCIO.ColorSpaceTransform(src='bt1886', dst='lxyz')) cs.setTransform(groupTransform, OCIO.Constants.COLORSPACE_DIR_TO_REFERENCE) config.addColorSpace(cs) # this sets the conversion from reference XYZ to film log values groupTransform = OCIO.GroupTransform() groupTransform.push_back(OCIO.ColorSpaceTransform(src='lxyz', dst='bt1886')) groupTransform.push_back(OCIO.FileTransform('bt1886_to_2383.3dl',interpolation=OCIO.Constants.INTERP_LINEAR)) cs.setTransform(groupTransform, OCIO.Constants.COLORSPACE_DIR_FROM_REFERENCE) config.addColorSpace(cs) On Fri, Apr 11, 2014 at 4:29 PM, Kevin Wheatley <kevin.j....@...> wrote:
|
|