Blue to Scalar: 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:Blue2Scalar_00_GUI.png|none|470px|Blue to Scalar]] | |||
__TOC__ | |||
==Overview== | |||
The Red/Green/Blue to scalar nodes all take a colour as input and output the respective colour component as a scalar. For example, the Red to scalar node will output the red value of the input colour. | |||
{| | |||
|- | |||
| [[File:RGB2Scalar_01_PaintedShader_Pop.jpg|none|800px|In this example, the Red/Green/Blue to scalar nodes are used to create masks based on a painted shader. The mask created by the Red to scalar node is then used to control the density of a population.]] | |||
|- | |||
| [[File:RGB2Scalar_02_PaintedShader_NodeNetwork.jpg| none|800px|The Node network view showing how each of the red, green, and blue channels can be isolated from the Painted shader, and then used as masks.]] | |||
|} | |||
This node has no other settings apart from the Input node. | |||
'''Settings:''' | |||
*'''Name:''' This setting allows you to apply a descriptive name to the node, which can be helpful when using multiple Blue to scalar 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. | |||
==Fun with Blue to Scalar== | |||
In the example below, a simple image is used to define areas for population of crops and irrigation canals. By extracting the colour channels via the Red/Green/Blue to scalar nodes, and then combining them with other function nodes, like Add scalar and Subtract scalar, mattes can be derived to help control population density or shader influence. | |||
{| | |||
|- | |||
| [[File:RGB2Scalar_03_ImageChannels.jpg|none|800px|The source image and red, green, and blue channels used to extract mattes for the agricultural and irrigation areas in the render below.]] | |||
|- | |||
| [[File:RGB2Scalar_04_Render.jpg|none|800px|Render using Red/Green/Blue to scalar nodes to extract mattes from an image to be used for populations of agriculture plants and surface shader for irrigation water.]] | |||
|- | |||
| [[File:RGB2Scalar_05_Render_NodeNetwork.jpg|none|800px|Node network view showing use of Red/Green/Blue to scalar nodes to extract mattes from an image to be used for populations of agriculture plants and surface shader for irrigation water.]] | |||
|} | |||
<br /n> | |||
[[Category:Convert]] | [[Category:Convert]] | ||
Latest revision as of 19:40, 3 March 2022

Overview
The Red/Green/Blue to scalar nodes all take a colour as input and output the respective colour component as a scalar. For example, the Red to scalar node will output the red value of the input colour.
This node has no other settings apart from the Input node.
Settings:
- Name: This setting allows you to apply a descriptive name to the node, which can be helpful when using multiple Blue to scalar 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.
Fun with Blue to Scalar
In the example below, a simple image is used to define areas for population of crops and irrigation canals. By extracting the colour channels via the Red/Green/Blue to scalar nodes, and then combining them with other function nodes, like Add scalar and Subtract scalar, mattes can be derived to help control population density or shader influence.




