Difference between revisions of "Scalar to Colour"

From Terragen Documentation from Planetside Software
Jump to: navigation, search
m (Added example images.)
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
[[Image:drex_module_97_image_0.png|485pxpx|Scalar to Colour]]
+
<div style="float:right; border-style:solid; padding:20px"><categorytree mode=pages hideroot=off>Convert</categorytree></div>
  
'''Node Description & Purpose: '''<br /> The Scalar to colour/vector nodes convert the Input scalar into a colour or vector, respectively. This conversion happens according to the node input type conversion rules which are described [[Node Input Type Conversion|here]].<br /><br />'''Node Type: ''' Function<br /><br />'''Settings: '''<br /> These nodes have no other settings apart from the Input node.
+
[[File:ScalarToColour_00_GUI.png|none|470px|Scalar to Colour]]
  
<!-- imported from file: module_97.html-->
 
  
[[Category:Convert| ]]
+
==Overview==
 +
The Scalar to colour node converts the Input scalar 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 scalar to a colour, each component of the colour is simply set to the value of the scalar:
 +
<ul>
 +
colour.red becomes scalar <br /n>
 +
colour.green becomes scalar  <br /n>
 +
colour.blue becomes scalar  <br /n>
 +
</ul>
 +
 
 +
 
 +
{|
 +
|-
 +
| [[File:ScalarToColour_01_NodeNetwork.jpg|none|800px|Node network view of Smooth voronoi scalar function node assigned to Scalar to colour node, then displaced.]]
 +
|-
 +
| [[File:ScalarToColour_02_Render.jpg|none|800px|Render showing Smooth voronoi scalar function assigned to Scalar to colour node, then displaced.]]
 +
|}
 +
 
 +
 
 +
These nodes have 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 Scalar 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]]

Latest revision as of 23:45, 16 March 2022

Scalar to Colour


Overview[edit]

The Scalar to colour node converts the Input scalar 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 scalar to a colour, each component of the colour is simply set to the value of the scalar:

    colour.red becomes scalar
    colour.green becomes scalar
    colour.blue becomes scalar


Node network view of Smooth voronoi scalar function node assigned to Scalar to colour node, then displaced.
Render showing Smooth voronoi scalar function assigned to Scalar to colour node, then displaced.


These nodes have 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 Scalar 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.


A scalar is a single number. 1, 200.45, -45, -0.2 are all examples of scalar values.

A single object or device in the node network which generates or modifies data and may accept input data or create output data or both, depending on its function. Nodes usually have their own settings which control the data they create or how they modify data passing through them. Nodes are connected together in a network to perform work in a network-based user interface. In Terragen 2 nodes are connected together to describe a scene.