(Please check arnold trac #2627 for sample cases) Some Arnold users trying to use monochrome images with alpha were getting colors into their renders.
When reading a monochrome image into a 4 channel RGBA buffer, fill_channels would correctly return CCCF (where C is the original gray channel and F is options.fill value) But when reading a monochrome image with alpha, it was turning a CA image into CAFF (where A is the original alpha) This proposed fix conforms a CA image into CCCA when CA is read into an RGBA buffer. Note it also changes the method signature to be able to determine if the read file had alpha or not. You can merge this Pull Request by running: git pull https://github.com/rmv/oiio monochrome_with_alpha Or you can view, comment on it, or merge it online at: https://github.com/OpenImageIO/oiio/pull/406 -- Commit Summary -- * Fixes fill_channels when a monochrome image with alpha has to be expanded to 4 channels -- File Changes -- M src/libtexture/environment.cpp (2) M src/libtexture/texture3d.cpp (2) M src/libtexture/texture_pvt.h (2) M src/libtexture/texturesys.cpp (39) -- Patch Links -- https://github.com/OpenImageIO/oiio/pull/406.patch https://github.com/OpenImageIO/oiio/pull/406.diff --- Reply to this email directly or view it on GitHub: https://github.com/OpenImageIO/oiio/pull/406 _______________________________________________ Oiio-dev mailing list [email protected] http://lists.openimageio.org/listinfo.cgi/oiio-dev-openimageio.org
