color cube houdini

Labelled Color Swatches

This Mantra shader reads attributes attached to primitives and composes a label that displays the color of the swatch.

Each box has got an unique color attribute defined depending on its position in the color color cube.
This attribute is used by the shader to pick the corresponding label layer from a pool of prerendered images.
This ensures that each box gets the right label describing its color.

As 256x256x256 prerendered images would be far to much, I rendered 256 images for each color:
R: [0 .. 255], G: [0 .. 255] and B: [0 .. 255].

The shader multiplies these images with the primitive color of the box.

To speed things up, we could prerender the label for each box as one pass image.
The next version of the digital asset should support this feature.

color cube houdini

color cube houdini

color cube houdini

color cube houdini

color cube houdini

color cube houdini

color cube houdini

color cube houdini