Go to: Related nodes. Attributes.

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

There are some kinds of effects that are easier to calculate using HSV values than RGB values. With this node, you can convert the output of any shading network into HSV values.

Example: Say you want to 'rotate' the Hue values of an image, like when you adjust the Hue control on a color television. This shifts the colors in the image around; red becomes yellow, green becomes cyan, etc. You could do that like this:

  File Texture    RGBtoHSV    PlusMinusAverage      HSVtoRGB   Blinn
  ------------    --------    ----------------      --------   -----
  Out Color------>In Rgb
                  Out Hsv---->Input3D[0]
                              Operation = "Sum"
                              Output3D------------->In Hsv
                                                    Out Rgb--->Color
In the table below, important attributes have their names listed in bold in the description column.

This node is MP safe

Node nameParentsClassificationMFn typeCompatible function sets

Related nodes

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

Attributes (8)

inRgb, inRgbB, inRgbG, inRgbR, outHsv, outHsvH, outHsvS, outHsvV

Long name (short name)TypeDefaultFlags
inRgb (i) float30.0, 0.0, 0.0outputinputconnectablestorable
In Rgb is the color that will be converted into HSV values.
inRgbR (ir) float0.0outputinputconnectablestorablekeyable
The first (red) component of In Rgb
inRgbG (ig) float0.0outputinputconnectablestorablekeyable
The second (green) component of In Rgb
inRgbB (ib) float0.0outputinputconnectablestorablekeyable
The third (blue) component of In Rgb
outHsv (o) float30.0, 0.0, 0.0outputconnectable
Out Hsv is the output HSV values.
outHsvH (oh) float0.0outputconnectable
The first (hue) component of Out 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
outHsvS (os) float0.0outputconnectable
The second (saturation) component of Out Hsv. The range is from 0 to 1 where 0 is a shade of grey, and 1 is a completely saturated color.
outHsvV (ov) float0.0outputconnectable
The third (value) component of Out Hsv. The range is from 0 to 1, where 0 is black and 1 is the brightest possible color of the given saturation.