OpenColorIO icon indicating copy to clipboard operation
OpenColorIO copied to clipboard

Alpha channel should be 1 by default, rather than 0

Open pennelee opened this issue 3 months ago • 1 comments

Related to issue https://github.com/AcademySoftwareFoundation/OpenColorIO/issues/1781.

For CPU processor, when source has no alpha (RGB) but dest does (RGBA) make it default to 1. GPU Processors (new and legacy) did not seem to have this issue, alpha was already set to 1. Let me know if this is not the case.

Tested changes with ocioconvert and changed the output to force RGBA, since the default is to use inplace conversion (did not check in those changes). Tested with all the ocioconvert test cases (basic, --lut, --view, --invertview --namedtransform, --invnamed transform), and various EXR file sizes.

Before the changes alpha would be 0, so image was not viewable. After the changes then images can be viewed and from inspection the alpha channel is now 1.0.

Also updated related CPU tests to reflect non zero alpha values.

pennelee avatar Sep 25 '25 23:09 pennelee

Thanks for the contribution @pennelee !

Added the devdays25 label.

doug-walker avatar Sep 25 '25 23:09 doug-walker