Go to: Related nodes. Attributes.

HSV to RGB is a utility node that allows you to convert an HSV (Hue-Saturation-Value) color into an RGB (Red-Green-Blue) color.

This is useful when you want to control a color using HSV values. For example, say you want to animate a shader to run through all the rainbow colors. (This is the same as animating the Hue of an HSV color). To do this, create an HSV to RGB node, and connect the Out Rgb attribute to the shader color. Then animate the first channel of InHsv (which is the Hue). In the table below, important attributes have their names listed in bold in the description column.

This node is MP safe

Node name Parents Classification MFn type Compatible function sets
hsvToRgb dependNode utility/color kHsvToRgb kBase
kNamedObject
kDependencyNode
kHsvToRgb

Related nodes

blendColors, clamp, lightInfo, gammaCorrect, surfaceLuminance, contrast, luminance, rgbToHsv, samplerInfo, setRange, resolution, renderQuality, renderGlobals, renderGlobalsList, baseShadingSwitch, singleShadingSwitch, doubleShadingSwitch, tripleShadingSwitch

Attributes (9)

inHsv, inHsvB, inHsvG, inHsvR, outRgb, outRgbB, outRgbG, outRgbR, renderPassMode

Long name (short name) Type Default Flags
inHsv (i) float3 0.0, 0.0, 0.0 outputinputconnectablestorable
In Hsv is the input color (represented as Hue, Saturation, and Value) that will be converted to an RGB color.
inHsvR (ir) float 0.0 outputinputconnectablestorablekeyable
The first (Hue) component of In Hsv. This value ranges from 0 to 360, representing degrees of a circle. The primary colors are found here:
0/360: Red
60: Yellow
120: Green
180: Cyan
240: Blue
300: Magenta
inHsvG (ig) float 0.0 outputinputconnectablestorablekeyable
The second (Saturation) component of In Hsv. The range is from 0 to 1 where 0 is a shade of grey, and 1 is a completely saturated color.
inHsvB (ib) float 0.0 outputinputconnectablestorablekeyable
The third (Value) component of In Hsv. The range is from 0 to 1, where 0 is black and 1 is the brightest possible color of the given saturation.
renderPassMode (arp) enum 1 outputinputconnectablestorablekeyable
renderPassMode controls how the node affects material render passes.
outRgb (o) float3 0.0, 0.0, 0.0 outputconnectable
Out Rgb is the output RGB color calculated by this node.
outRgbR (or) float 0.0 outputconnectable
The first (red) component of Out Rgb
outRgbG (og) float 0.0 outputconnectable
The second (green) component of Out Rgb
outRgbB (ob) float 0.0 outputconnectable
The third (blue) component of Out Rgb