Vector to Colour: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
Updated descriptions and added example images. |
||
| Line 1: | Line 1: | ||
<div style="float:right; border-style:solid; padding:20px"><categorytree mode=pages hideroot=off>Convert</categorytree></div> | |||
[[File:VectorToColour_00_GUI.png|none|470px|Vector to Colour]] | |||
== Overview == | |||
The Vector to colour node converts the Input vector into a colour. This conversion happens according to the node input type conversion rules which are described in the [[Node Input Type Conversion]] documentation. | |||
When converting a vector to a colour, a piecewise component copy is done: | |||
<ul> | |||
colour.red becomes vector.x <br /n> | |||
colour.green becomes vector.y <br /n> | |||
colour.blue becomes vector.z <br /n> | |||
</ul> | |||
The following example is for illustrative purposes only. An EXR image supplies vector data to displace the planet surface. The vector data is also passed to a Normalise vector node prior to being passed to a Vector to colour node because some of the vector values will exceed the visual range, 0 to 1 or sRGB 0 - 255. Once normalised, the vector data is then converted to colour via the Vector to colour node. | |||
{| | |||
|- | |||
| [[File:VectorToColour_01_VDM_NodeNetwork.jpg|None|800px|Node Network view illustrating the vector data supplied by an EXR file both displacing and colouring the planet surface.]] | |||
|- | |||
| [[File:VectorToColour_02_VDM_Renders.jpg|None|800px|Render views illustrating the vector data supplied by an EXR file being assigned to a Surface layer’s Colour function and Luminosity function.]] | |||
|} | |||
'''Settings:''' | |||
*'''Name:''' This setting allows you to apply a descriptive name to the node, which can be helpful when using multiple Vector to colour nodes in a project. | |||
*'''Enable:''' When checked, the node is active and the conversion operation will take place. When unchecked the values assigned to its Main Input, if any, are passed through, otherwise a value of 0 is passed through. | |||
<br /n> | |||
[[Category:Convert]] | [[Category:Convert]] | ||
Latest revision as of 17:50, 17 March 2022

Overview
The Vector to colour node converts the Input vector into a colour. This conversion happens according to the node input type conversion rules which are described in the Node Input Type Conversion documentation.
When converting a vector to a colour, a piecewise component copy is done:
The following example is for illustrative purposes only. An EXR image supplies vector data to displace the planet surface. The vector data is also passed to a Normalise vector node prior to being passed to a Vector to colour node because some of the vector values will exceed the visual range, 0 to 1 or sRGB 0 - 255. Once normalised, the vector data is then converted to colour via the Vector to colour node.
Settings:
- Name: This setting allows you to apply a descriptive name to the node, which can be helpful when using multiple Vector to colour nodes in a project.
- Enable: When checked, the node is active and the conversion operation will take place. When unchecked the values assigned to its Main Input, if any, are passed through, otherwise a value of 0 is passed through.