Difference between revisions of "Constant Vector"

From Terragen Documentation from Planetside Software
Jump to: navigation, search
(Updated descriptions and added example images.)
 
(3 intermediate revisions by one other user not shown)
Line 1: Line 1:
[[Category:IMPORT]]
+
<div style="float:right; border-style:solid; padding:20px"><categorytree mode=pages hideroot=off>Constant</categorytree></div>
='''Constant Vector'''=
 
  
[[Image:drex_module_22_image_0.png|485pxpx|Constant Vector]]
 
  
'''Node Description & Purpose: '''<br /> 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.<br /><br /> 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.<br /><br />'''Node Type: ''' Function<br /><br />'''Settings: '''<br /> 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.
+
[[File:ConstantVector_00_GUI.png|none|470px|Constant Colour]]
  
__NOTOC__
+
 
<!-- imported from file: module_22.html-->
+
== Overview ==
 +
The Constant family of nodes allows you to create colour, vector, or scalar values, which may be used as input for other nodes.  Scalar values consist of a single number or magnitude, while vector and colour values are made up of several components, such as the values that make up the red, green, and blue channel of a particular colour.
 +
 
 +
Like all nodes in Terragen, the output from a Constant node can be used as input to multiple nodes.  For example, you can create one Constant scalar node and connect its output to as many inputs as you need.
 +
<ul>
 +
[[File: ConstantFamily_OutputExample.jpg|none|800px|The output of a Constant node may be used as input to multiple nodes.]]
 +
</ul>
 +
 
 +
 
 +
'''Settings:'''
 +
 
 +
*'''Name:''' This setting allows you to apply a descriptive name to the node, which can be helpful when using multiple Constant Vector nodes in a project.
 +
*'''Enable:''' When checked, the node is active and the vector values defined by its settings below are output.  When unchecked the values assigned to its Main Input, if any, are passed through, otherwise a value of 0 is passed through.
 +
*'''Vector:''' This setting allows you to define the three components that make up the vector value
 +
 
 +
<br/n>
 +
 
 +
 
 +
[[Category:Constant]]

Latest revision as of 20:59, 4 February 2022


Constant Colour


Overview[edit]

The Constant family of nodes allows you to create colour, vector, or scalar values, which may be used as input for other nodes. Scalar values consist of a single number or magnitude, while vector and colour values are made up of several components, such as the values that make up the red, green, and blue channel of a particular colour.

Like all nodes in Terragen, the output from a Constant node can be used as input to multiple nodes. For example, you can create one Constant scalar node and connect its output to as many inputs as you need.

    The output of a Constant node may be used as input to multiple nodes.


Settings:

  • Name: This setting allows you to apply a descriptive name to the node, which can be helpful when using multiple Constant Vector nodes in a project.
  • Enable: When checked, the node is active and the vector values defined by its settings below are output. When unchecked the values assigned to its Main Input, if any, are passed through, otherwise a value of 0 is passed through.
  • Vector: This setting allows you to define the three components that make up the vector value


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 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.