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]
Input3D[1]=(60,0,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 name |
Parents |
Classification |
MFn type |
Compatible function sets |
rgbToHsv |
node |
utility/color:drawdb/shader/operation/rgbToHsv |
kRgbToHsv |
kBase
kNamedObject
kDependencyNode
kRgbToHsv |
Related nodes
blendColors, clamp, lightInfo,
gammaCorrect, surfaceLuminance, contrast, luminance, hsvToRgb, samplerInfo, setRange, resolution, renderQuality, renderGlobals, renderGlobalsList, baseShadingSwitch, singleShadingSwitch, doubleShadingSwitch, tripleShadingSwitch
Attributes (9)
inRgb, inRgbB, inRgbG,
inRgbR, outHsv,
outHsvH, outHsvS, outHsvV,
renderPassMode
Long name (short name) |
Type |
Default |
Flags |
|
inRgb
(i ) |
float3 |
0.0, 0.0, 0.0 |
|
|
|
|
|
renderPassMode
(arp ) |
enum |
1 |
|
|
outHsv
(o ) |
float3 |
0.0, 0.0, 0.0 |
|
|
outHsvH
(oh ) |
float |
0.0 |
|
|
|
outHsvS
(os ) |
float |
0.0 |
|
|
|
outHsvV
(ov ) |
float |
0.0 |
|
|