Difference Scalar: Difference between revisions

From Terragen Documentation from Planetside Software
Jump to navigation Jump to search
No edit summary
Redmaw (talk | contribs)
Conformed layout & updated GUI image.
 
Line 1: Line 1:
[[Image:drex_module_48_image_0.png|485pxpx|Difference Scalar]]
<div style="float:right; border-style:solid; padding:20px"><categorytree mode=pages hideroot=off>Subtract</categorytree></div>


'''Node Description & Purpose: '''<br /> The Difference family of nodes finds the difference of the two input values. The difference is the absolute value of the '''Input''' value minus the '''Input 2''' value:<br /><br /> Output = '''absolute value of'''( Input '''minus''' Input 2 )<br /><br /> For more information about absolute values, see the documentation for the [[Abs Colour|Abs Colour]] node.<br /><br /> For colours the calculation is done on a component-wise basis, for example: <br /><br /> Output.red = '''difference of''' Input.red and Input 2.red<br /> Output.green = '''difference of''' Input.green and Input 2.green<br /> Output.blue = '''difference of''' Input.blue and Input 2.blue<br /><br />'''Node Type: ''' Function<br /><br />'''Settings: '''<br /> These nodes just have one other setting, which lets you choose a node for '''Input 2'''.
[[File:DifferenceScalar_00_GUI.png|none|470px|Difference Scalar]]


<!-- imported from file: module_48.html-->
 
==Overview==
The Difference family of nodes finds the difference of the two input values. The difference is the absolute value of the '''Input''' value minus the '''Input 2''' value:<br /><br /> Output = '''absolute value of'''( Input '''minus''' Input 2 )<br /><br /> For more information about absolute values, see the documentation for the [[Abs Colour|Abs Colour]] node.<br /><br /> For colours the calculation is done on a component-wise basis, for example: <br /><br /> Output.red = '''difference of''' Input.red and Input 2.red<br /> Output.green = '''difference of''' Input.green and Input 2.green<br /> Output.blue = '''difference of''' Input.blue and Input 2.blue<br /><br />These nodes just have one other setting, which lets you choose a node for '''Input 2'''.
 
 
'''Settings:'''
*'''Name:''' This setting allows you to apply a descriptive name to the node, which can be helpful when using multiple Difference scalar nodes in a project.
*'''Enable:''' When checked, the node is active, and when unchecked the node is ignored.
*'''Input 2:''' This is where you specify the node for the Input 2 value.
 
 
<br /n>


[[Category:Subtract]]
[[Category:Subtract]]

Latest revision as of 19:42, 6 April 2022

Difference Scalar
Difference Scalar


Overview

The Difference family of nodes finds the difference of the two input values. The difference is the absolute value of the Input value minus the Input 2 value:

Output = absolute value of( Input minus Input 2 )

For more information about absolute values, see the documentation for the Abs Colour node.

For colours the calculation is done on a component-wise basis, for example:

Output.red = difference of Input.red and Input 2.red
Output.green = difference of Input.green and Input 2.green
Output.blue = difference of Input.blue and Input 2.blue

These nodes just have one other setting, which lets you choose a node for Input 2.


Settings:

  • Name: This setting allows you to apply a descriptive name to the node, which can be helpful when using multiple Difference scalar nodes in a project.
  • Enable: When checked, the node is active, and when unchecked the node is ignored.
  • Input 2: This is where you specify the node for the Input 2 value.