# Make color node with HSV for random material

**URL:** <https://forums.unrealengine.com/t/make-color-node-with-hsv-for-random-material/328970>\
**Category:** Rendering\
**Tags:** unreal-engine, Blueprint, question\
**Created:** [August 17, 2015, 2:41pm UTC](https://forums.unrealengine.com/t/make-color-node-with-hsv-for-random-material/328970 "2015-08-17T14:41:43Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ikos](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Ikos](https://forums.unrealengine.com/u/Ikos)\
**Post date:** [August 17, 2015, 2:41pm UTC](https://forums.unrealengine.com/t/make-color-node-with-hsv-for-random-material/328970/1 "2015-08-17T14:41:43Z")

</div>

Hello,  
I’m trying to make a blueprint (mesh) that get a random color on play and it works ok for now, the main problem is that I 'd prefer to randomize the HSV values instead of the RGB but I couldn’t find a node that allow me to do that.

Is there anything that I can use to fix that?

At the moment the event graph looks like this:

 ![54449-capture.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/5/e/95e158e1fa0c3c6dda1e10109b902eaf7fa1c890.png)

Thank you.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_2ed5b4c7](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_2ed5b4c7](https://forums.unrealengine.com/u/anonymous_user_2ed5b4c7)\
**Post date:** [August 17, 2015, 3:06pm UTC](https://forums.unrealengine.com/t/make-color-node-with-hsv-for-random-material/328970/2 "2015-08-17T15:06:44Z")

</div>

Hi!

Try to use **HueShift** node

 ![54461-hue01.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/8/f/48ff94d52e5fa3e3a6e6813f512f2226bf7c43a2.jpeg)

 ![54462-hue02.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/a/9/4a98c2e2a8a3639f572247e71313be46670b05d7.jpeg)

When you move object, it will get random color.

 ![54463-hue03.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/2/b/92bd4df82ad4c94ac539d50ba214c4e4ed699f6f.png)

---

<div class="post-metadata">

**Author:** ![Ikos](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Ikos](https://forums.unrealengine.com/u/Ikos)\
**Post date:** [August 17, 2015, 3:36pm UTC](https://forums.unrealengine.com/t/make-color-node-with-hsv-for-random-material/328970/3 "2015-08-17T15:36:45Z")

</div>

This could fix my problem but how can I use a random value for the saturation (H **S** V) and the value (HS **V** )?

Cause I would use this to change the color of some static meshes in the scene but I don’t want’em to look so similar, I’d like to give a random number - between a selected range - of saturation and value so they would look less alike.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_2ed5b4c7](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_2ed5b4c7](https://forums.unrealengine.com/u/anonymous_user_2ed5b4c7)\
**Post date:** [August 18, 2015, 7:40am UTC](https://forums.unrealengine.com/t/make-color-node-with-hsv-for-random-material/328970/4 "2015-08-18T07:40:52Z")

</div>

You can create a material function, which convert HSV to RGB

> **[HSV to RGB and back again](https://forums.unrealengine.com/showthread.php?56512-HSV-to-RGB-and-back-again)**
>
> https://docs.unrealengine.com/latest/INT/BlueprintAPI/Math/Color/HSVToRGB\_Vector\_/index.html I’m guessing this particular blueprint is only available to blueprints that aren’t actual shader blueprints. Which seems a little odd. Has anyone made a...

---

<div class="post-metadata">

**Author:** ![Ikos](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Ikos](https://forums.unrealengine.com/u/Ikos)\
**Post date:** [August 18, 2015, 11:03am UTC](https://forums.unrealengine.com/t/make-color-node-with-hsv-for-random-material/328970/5 "2015-08-18T11:03:28Z")

</div>

If someone is searching for a simple a quick solution I found the function HSV to RGB which does exactly what I wanted.

 ![54559-capture.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/5/3/1533f2abcfcfd34b3a5d0219bb47cacc3c91a756.png)

---

<div class="post-metadata">

**Author:** ![Ikos](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Ikos](https://forums.unrealengine.com/u/Ikos)\
**Post date:** [August 18, 2015, 11:04am UTC](https://forums.unrealengine.com/t/make-color-node-with-hsv-for-random-material/328970/6 "2015-08-18T11:04:53Z")

</div>

Thank you for your time but I found the answer myself, it was a node that I didn’t find the first time and it works exactly as I wanted. Thank you again tho.
