Gain Scalar

From Terragen Documentation from Planetside Software
Revision as of 01:33, 18 May 2011 by JavaJones (talk | contribs)
Jump to: navigation, search

Gain Scalar

Node Description & Purpose:
The Gain scalar node creates a curve, the shape of which depends on the Gain value. The output of the node is the value of the gain curve corresponding to the Input value. Here's a graph showing the gain curve at two different Gain values:

Gain.gif


The output value will be between 0 and 1. The node expects both the Input and Gain values to be between 0 and 1. It does clamp these values to make sure that they are within that range.

Node Type: Function

Settings:

  • Gain: The value defining the shape of the gain curve, as in the graph above.


Error conditions:

  • It is an error for there to be no Input value. In that case 0 is output from the node.
  • It is an error for there to be no Gain value. In this case the Input value will be output.

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.