Difference between revisions of "Abs Vector"
(Updated descriptions and added example images.) 

Line 1:  Line 1:  
−  +  <div style="float:right; borderstyle:solid; padding:20px"><categorytree mode=pages hideroot=off>Clamp</categorytree></div>  
−  +  [[File:ABSVector_00_GUI.pngnone470pxAbs Vector]]  
+  
+  
+  == 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>  
−  +  
+  This function works in a componentwise 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>  
+  </ul>  
+  
+  
+  In the example below, an EXR image containing vector data is assigned to the Main Input of the Abs Vector node. Visually, the green pixels represent data above a value of 0 in the Y axis, whereas the magenta pixels indicate negative values which lie below. When enabled, the Abs Vector node outputs all values as positive values.  
+  <ul>  
+  [[File:AbsVector.jpgnone800pxThe ABS Vector node outputs all values as positive values. Any negative values below 0, are returned as positive values above 0.]]  
+  </ul>  
−  
−  +  '''Settings:'''  
−  This  +  *'''Name:''' This setting allows you to apply a descriptive name to the node, which can be helpful when using multiple Abs Vector 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.  
−  +  <br /n>  
−  
−  
−  
−  
−  
[[Category: Clamp]]  [[Category: Clamp]] 
Revision as of 23:47, 3 February 2022
Overview[edit]
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 componentwise 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 )
In the example below, an EXR image containing vector data is assigned to the Main Input of the Abs Vector node. Visually, the green pixels represent data above a value of 0 in the Y axis, whereas the magenta pixels indicate negative values which lie below. When enabled, the Abs Vector node outputs all values as positive values.
Settings:
 Name: This setting allows you to apply a descriptive name to the node, which can be helpful when using multiple Abs Vector 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.
A scalar is a single number. 1, 200.45, 45, 0.2 are all examples of scalar values.
A vector is a set of three scalars, normally representing X, Y and Z coordinates. It also commonly represents rotation, where the values are pitch, heading and bank.
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 networkbased user interface. In Terragen 2 nodes are connected together to describe a scene.