Abs Colour: Difference between revisions

From Terragen Documentation from Planetside Software
Jump to navigation Jump to search
No edit summary
Redmaw (talk | contribs)
m Added ABS family of nodes chart.
 
(10 intermediate revisions by 2 users not shown)
Line 1: Line 1:
[[Category:IMPORT]]
<div style="float:right; border-style:solid; padding:20px"><categorytree mode=pages hideroot=off>Clamp</categorytree></div>
='''Abs Colour'''=


[[Image:drex_module_63_image_0.png|485pxpx|Abs Colour]]
[[File:ABSColour_00_GUI.png|none|470px|Abs Colour]]
__NOTOC__


'''Node Description & Purpose:'''
== Overview==
The Abs family of nodes allow you to find the absolute value of the colour/scalar/vector coming into the Input. The absolute value of a number is its value regardless of whether it is positive or negative. In practice, this means the absolute value is always a positive number. For example:
The Abs family of nodes allow you to find the absolute value of the colour/scalar/vector coming into the Input. The absolute value of a number is its value regardless of whether it is positive or negative. In practice, this means the absolute value is always a positive number. For example:
<ul>
The absolute value of 4 is 4 <br /n>
The absolute value -2 is 2 <br /n>
The absolute value of 0 is 0 <br /n>
</ul>


The absolute value of 4 is 4


The absolute value -2 is 2
This function works in a component-wise fashion for colours and vectors, so using vectors as an example :
<ul>
( 2.1, -6, 4 ) becomes ( 2.1, 6, 4 ) <br /n>
( -10, -3, -2 ) becomes ( 10, 3, 2 ) <br /n>
<br /n>
[[File:ABSfamilyOfNodes_Chart.png|none|800px|The ABS family of nodes always returns a positive number for a given input.]]
</ul>


The absolute value of 0 is 0
In the example below, an EXR image containing vector data is assigned to the Main Input of the ABS Colour node.  Visually, the green pixels represent data above a value of 0 in the Y axis, whereas the magenta pixels indicate a blend of positive and negative values lying on the X and Z axis.  When enabled, the ABS Colour node outputs all values as positive values.
<ul>
[[File:AbsColour.jpg|none|800px|The ABS Colour node outputs all values as positive values.  Any negative values below 0, are returned as positive values above 0.]]
</ul>
'''Settings:'''


This function works in a component-wise fashion for colours and vectors, so using vectors as an example :
*'''Name:''' This setting allows you to apply a descriptive name to the node, which can be helpful when using multiple Abs Colour nodes in a project.
*'''Enable:''' When checked, the node is active and the absolute value from the Main Input is output. When unchecked, the Main Input value is passed through the node.


( 2.1, -6, 4 ) becomes ( 2.1, 6, 4 )


( -10, -3, -2 ) becomes ( 10, 3, 2 )
<br /n>


'''Node Type:''' Function


'''Settings:'''
[[Category: Clamp]]
This node has no other settings apart from the Input node.

Latest revision as of 20:27, 21 February 2022

Abs Colour
Abs Colour


Overview

The Abs family of nodes allow you to find the absolute value of the colour/scalar/vector coming into the Input. The absolute value of a number is its value regardless of whether it is positive or negative. In practice, this means the absolute value is always a positive number. For example:

    The absolute value of 4 is 4
    The absolute value -2 is 2
    The absolute value of 0 is 0


This function works in a component-wise fashion for colours and vectors, so using vectors as an example :

    ( 2.1, -6, 4 ) becomes ( 2.1, 6, 4 )
    ( -10, -3, -2 ) becomes ( 10, 3, 2 )

    The ABS family of nodes always returns a positive number for a given input.
    The ABS family of nodes always returns a positive number for a given input.


In the example below, an EXR image containing vector data is assigned to the Main Input of the ABS Colour node. Visually, the green pixels represent data above a value of 0 in the Y axis, whereas the magenta pixels indicate a blend of positive and negative values lying on the X and Z axis. When enabled, the ABS Colour node outputs all values as positive values.

    The ABS Colour node outputs all values as positive values. Any negative values below 0, are returned as positive values above 0.
    The ABS Colour node outputs all values as positive values. Any negative values below 0, are returned as positive values above 0.


Settings:

  • Name: This setting allows you to apply a descriptive name to the node, which can be helpful when using multiple Abs Colour nodes in a project.
  • Enable: When checked, the node is active and the absolute value from the Main Input is output. When unchecked, the Main Input value is passed through the node.