Constant Vector

From Planetside Software Wiki
Jump to: navigation, search

Constant Vector

Node Description & Purpose:
The Constant family of nodes let you create values of one of the three main types Terragen 2 uses - scalar numbers, a vector of numbers with several components and colours, respectively. They can then be used to input particular values into other nodes.

A Constant node can input the same value into more than one node at a time, or in other words it can have multiple connections from its output to the inputs of other nodes. This means that if you find you are wanting to input the scalar value 0 into a number of nodes you can create just one Constant scalar and hook its output up to every input that needs that value.

Node Type: Function

Settings:
All nodes in this family do one one thing - they let you set some sort of value which is then output from the node. A Constant scalar lets you set the value for one number. A Constant vector lets you set values for the three components of vector. A Constant colour lets you choose a colour.

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 network-based user interface. In Terragen 2 nodes are connected together to describe a scene.