RGB to HSV conversion

Started by aokcub, June 25, 2022, 08:17:17 AM

Previous topic - Next topic


While building my scene shown below I constructed a clip file to modify texture color.

I sometimes wanted to modify texture color in the HSV model.
Terragen 4 has "build HSV colour" node to build HSV color from H, S and V components but I couldn't find a good way to extract them from RGB colors.

This node network is little big but it allows you to change texture color with offsetting H, S, V components.

Connect your RGB input Red to scalar, Green to scalar and Blue to scalar nodes at the top of the block.

You can offset each component by manip. H/S/V node at the bottom of the block.
HSV color is output by HSV output node.

There may be bugs in this network.
If you have any problems, please feel free to comment!

Also please let me know if there is another way to do this (node or past posts)!


Fantastic! I was looking for something just like this years ago. I actually didn't understand why we didn't have this, considering in nodes, we have RGB operators, but nothing to convert RGB operators for building HSV manipulation. This is awesome.


Nice! This should come in very handy indeed for a lot of folks. Thanks for the hard work & share.
The more I use Terragen, the more I realize the world is not so small.