r/Houdini • u/backface_culling • 10h ago
Simulation Ported the MixBox Colour Blending Algorithm to Houdini OpenCL
Enable HLS to view with audio, or disable this notification
Hi everyone, sharing my transpiled version of the MixBox pigment mixing algorithm into Houdini's OpenCL.
The code is based on the OSL version from the original repository because it included the lookup table for evaluating the polynomials right into the code instead of using a texture image which is what the other shader implementations used.
MixBox seeks to solve the issue of inaccurate digital colour blending because colours don't mix by simply lerping RGB values.
I have included my OpenCL code as a header file which you can use in your own kernels or copy paste all the functions inline to use them.
Here's the GitHub repository for the code, instructions on how to use, as well as demo files:
https://github.com/yongsoon-vfx/mixbox-houdini-opencl
And my instagram for some of my other work:
https://www.instagram.com/backface.culling

