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

NameDescription
BitA bit constant. Suitable for direct user input.
Color4A four component float color constant. Component values vary from 0.0 to 1.0.
ColorGradientA color gradient constant. Suitable for direct user input.
IntegerAn integer constant. Suitable for direct user input.
Integer64A 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.
RealA float constant. Suitable for direct user input.
Vector3A three component float vector constant.

 

Bit

A bit constant. Suitable for direct user input.

Inputs

NameTypesPassThroughDescription
inBit
 Optional

bit

The in

Outputs

NameTypesPassThroughDescription
bitBit
 Optional

in

The bit

 

Color4

A four component float color constant. Component values vary from 0.0 to 1.0.

Suitable for direct user input.

Inputs

NameTypesPassThroughDescription
inColor4
 Optional

color

The in

Outputs

NameTypesPassThroughDescription
colorColor4
 Optional

in

The color

 

ColorGradient

A color gradient constant. Suitable for direct user input.

Inputs

NameTypesPassThroughDescription
inColorGradient
 Optional

out

The in

Outputs

NameTypesPassThroughDescription
outColorGradient
 Optional

in

The out

 

Integer

An integer constant. Suitable for direct user input.

Inputs

NameTypesPassThroughDescription
inInteger
 Optional

integer

The in

Outputs

NameTypesPassThroughDescription
integerInteger
 Optional

in

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

NameTypesPassThroughDescription
inInteger64
 Optional

integer64

The in

Outputs

NameTypesPassThroughDescription
integer64Integer64
 Optional

in

The integer64

 

Real

A float constant. Suitable for direct user input.

Inputs

NameTypesPassThroughDescription
inReal
 Optional

real

The in

Outputs

NameTypesPassThroughDescription
realReal
 Optional

in

The real

 

Vector3

A three component float vector constant.

Suitable for direct user input.

Inputs

NameTypesPassThroughDescription
inVector3
 Optional

vector

The in

Outputs

NameTypesPassThroughDescription
vectorVector3
 Optional

in

The vector