Constant
Constants are user-definable numbers. They can be created anywhere in a graph and, in most cases, constants are needed to define a value, for example a temperature, velocity, density, or even colour. There are several types of constants for different fields of application:
- "Bits" only have two states: 0 and 1.Â
- "Integers" are numbers like 5, 873, or 43324.
- "Real" numbers are also called decimal fractions and the number of decimals is called precision. Examples are 3.1415, 642.5, or 1054.343578.Â
- "Vector3" expects a trio of values and these values can be integers or reals. A typical "Vector3" is a particle's position or normal. These vectors always consist of three elements – one for each axes.
- "Color4" stores a total four values: RGB plus an Alpha channel
Â
Nodes
Name | Description |
---|---|
Bit | A bit constant. Suitable for direct user input. |
Color4 | A four component float color constant. Component values vary from 0.0 to 1.0. |
ColorGradient | A color gradient constant. Suitable for direct user input. |
Integer | An integer constant. Suitable for direct user input. |
Integer64 | A 64 bit integer constant. Suitable for direct user input. Due to RealFlow user interface limitations, even while the stored value is of 64 bit precission,the parameter introduced by the user is still treated as a 32 bit value. To create a value bigger than 2^32 it is necessary to perform extra arithmetic operations or get it from a different node. |
Real | A float constant. Suitable for direct user input. |
Vector3 | A three component float vector constant. |
Â
Bit
A bit constant. Suitable for direct user input.
Inputs
Name | Types | PassThrough | Description |
---|---|---|---|
in | Bit | The in |
Outputs
Name | Types | PassThrough | Description |
---|---|---|---|
bit | Bit | The bit |
Â
Color4
A four component float color constant. Component values vary from 0.0 to 1.0.
Suitable for direct user input.
Inputs
Name | Types | PassThrough | Description |
---|---|---|---|
in | Color4 | The in |
Outputs
Name | Types | PassThrough | Description |
---|---|---|---|
color | Color4 | The color |
Â
ColorGradient
A color gradient constant. Suitable for direct user input.
Inputs
Name | Types | PassThrough | Description |
---|---|---|---|
in | ColorGradient | The in |
Outputs
Name | Types | PassThrough | Description |
---|---|---|---|
out | ColorGradient | The out |
Â
Integer
An integer constant. Suitable for direct user input.
Inputs
Name | Types | PassThrough | Description |
---|---|---|---|
in | Integer | The in |
Outputs
Name | Types | PassThrough | Description |
---|---|---|---|
integer | Integer | The integer |
Â
Integer64
A 64 bit integer constant. Suitable for direct user input. Due to RealFlow user interface limitations, even while the stored value is of 64 bit precission,the parameter introduced by the user is still treated as a 32 bit value. To create a value bigger than 2^32 it is necessary to perform extra arithmetic operations or get it from a different node.
Inputs
Name | Types | PassThrough | Description |
---|---|---|---|
in | Integer64 | The in |
Outputs
Name | Types | PassThrough | Description |
---|---|---|---|
integer64 | Integer64 | The integer64 |
Â
Real
A float constant. Suitable for direct user input.
Inputs
Name | Types | PassThrough | Description |
---|---|---|---|
in | Real | The in |
Outputs
Name | Types | PassThrough | Description |
---|---|---|---|
real | Real | The real |
Â
Vector3
A three component float vector constant.
Suitable for direct user input.
Inputs
Name | Types | PassThrough | Description |
---|---|---|---|
in | Vector3 | The in |
Outputs
Name | Types | PassThrough | Description |
---|---|---|---|
vector | Vector3 | The vector |