Planetside Software Forums

General => File Sharing => General => Topic started by: aokcub on June 25, 2022, 08:17:17 AM

Title: RGB to HSV conversion
Post by: aokcub on June 25, 2022, 08:17:17 AM
While building my scene shown below I constructed a clip file to modify texture color.
https://planetside.co.uk/forums/index.php/topic,30150.0.html (https://planetside.co.uk/forums/index.php/topic,30150.0.html)

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.

[USAGE]
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.

[NOTE]
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)!
Title: Re: RGB to HSV conversion
Post by: WAS on June 25, 2022, 05:02:03 PM
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.
Title: Re: RGB to HSV conversion
Post by: pixelpusher636 on June 25, 2022, 05:48:36 PM
Nice! This should come in very handy indeed for a lot of folks. Thanks for the hard work & share.