Difference between revisions of "Boolean NOT Scalar"

From Terragen Documentation from Planetside Software
Jump to: navigation, search
(Conformed layout & updated GUI image.)
 
Line 1: Line 1:
[[Image:drex_module_124_image_0.png|485pxpx|Boolean NOT Scalar]]
+
<div style="float:right; border-style:solid; padding:20px"><categorytree mode=pages hideroot=off>Boolean</categorytree></div>
  
'''Node Description & Purpose: ''' The Boolean NOT scalar node is a very simple one which performs a Boolean NOT operation on the Input value. A Boolean has a value of either 1 or 0. A Boolean NOT operation simply flips the value :
+
[[File:BooleanNOTScalar_00_GUI.png|none|470px|Boolean NOT Scalar]]
 +
 
 +
 
 +
==Overview==
 +
Node Description & Purpose: The Boolean NOT scalar node is a very simple one which performs a Boolean NOT operation on the Input value. A Boolean has a value of either 1 or 0. A Boolean NOT operation simply flips the value:
 +
 
 +
 
 +
0 '''becomes''' 1 <br /n>
 +
1 '''becomes''' 0 <br /n>
  
0 '''becomes''' 1<br /> 1 '''becomes''' 0
 
  
 
The Boolean NOT scalar node is intended to be used with other Boolean nodes. However if a non-Boolean value is input to the node then it is converted to 0 if the input value equals 0, and 1 if the input value is not equal to 0. As an example:
 
The Boolean NOT scalar node is intended to be used with other Boolean nodes. However if a non-Boolean value is input to the node then it is converted to 0 if the input value equals 0, and 1 if the input value is not equal to 0. As an example:
  
'''Input''' of 0 '''becomes''' 0<br />'''Input''' of 0.5 '''becomes''' 1<br />'''Input''' of 2 '''becomes''' 1<br />'''Input''' of -0.5 '''becomes''' 1
+
 
 +
'''Input''' of 0 '''becomes''' 0 <br /n>
 +
'''Input''' of 0.5 '''becomes''' 1 <br /n>
 +
'''Input''' of 2 '''becomes''' 1 <br /n>
 +
'''Input''' of -0.5 '''becomes''' 1 <br /n>
 +
 
  
 
The Boolean NOT operation is then performed on the converted value. If you want more control over the conversion of scalar values to Boolean scalar values then you should use the Scalar to Boolean scalar node.
 
The Boolean NOT operation is then performed on the converted value. If you want more control over the conversion of scalar values to Boolean scalar values then you should use the Scalar to Boolean scalar node.
  
'''Node Type: '''Function
+
 +
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 Boolean NOT scalar nodes in a project.
 +
*'''Enable:''' When checked, the node is active, and when unchecked the node is ignored.
 +
 +
 
 +
<br /n>
  
'''Settings: '''<br /> This node has no other settings apart from the '''Input''' node.
 
  
'''Error conditions:'''<br />
 
  
'''Input'''
 
  
 
[[Category: Boolean]]
 
[[Category: Boolean]]

Latest revision as of 04:20, 6 April 2022

Boolean NOT Scalar


Overview[edit]

Node Description & Purpose: The Boolean NOT scalar node is a very simple one which performs a Boolean NOT operation on the Input value. A Boolean has a value of either 1 or 0. A Boolean NOT operation simply flips the value:


0 becomes 1
1 becomes 0


The Boolean NOT scalar node is intended to be used with other Boolean nodes. However if a non-Boolean value is input to the node then it is converted to 0 if the input value equals 0, and 1 if the input value is not equal to 0. As an example:


Input of 0 becomes 0
Input of 0.5 becomes 1
Input of 2 becomes 1
Input of -0.5 becomes 1


The Boolean NOT operation is then performed on the converted value. If you want more control over the conversion of scalar values to Boolean scalar values then you should use the Scalar to Boolean scalar node.


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 Boolean NOT scalar nodes in a project.
  • Enable: When checked, the node is active, and when unchecked the node is ignored.



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.