Boolean NOT Scalar

From Terragen Documentation from Planetside Software
Revision as of 04:05, 11 July 2010 by JavaJones (talk | contribs)
Jump to: navigation, search

Boolean NOT Scalar[edit]

Boolean NOT Scalar


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.

Node Type: Function

Settings:
This node has no other settings apart from the Input node.

Error conditions:

Input

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.