Conversion
A very common operation with graphs is the conversion of data types: integers have to be transferred into real numbers and vice versa, vectors are split into their X, Y, and Z components, and numbers are turned into strings. It is, of course, also possible to create a vector from three individual values. This is important when you calculate positions, forces, or velocities. The "Conversion" class provides nodes for virtually any purpose.
Nodes
Name | Description |
---|---|
ArrayBitFromString | This node returns a bit array using the input string characters as a reference. |
ArrayBitToInteger | This node converts the binary representation of the input into a 32 bit integer value. If the input bit array is smaller than 32 bit, the rest of the left bits are treated as 0. |
ArrayBitToInteger64 | This node converts the binary representation of the input into a 64 bit integer value. If the input bit array is smaller than 64 bit, the rest of the left bits are treated as 0. |
ArrayBitToString | This node returns a string version of the input bit array in a form similar like: "01001011". |
Color4FromComponents | Returns a color value defined by its components. |
Color4Info | Returns information about the components of the input 'color' value. |
Color4RgbFromHsv | This node returns a color in RGB representation described by the input HSV components. |
Color4RgbToHsv | This node returns the components of the RGB color in the HSV color representation model. |
Color4ToComponents | Returns the components of the input 'color' value. |
Color4ToVector3 | Converts the RGB values of Color4 to a Vector3 value. Mapping (r,g,b,a) to (x,y,z) results e.g., in (r,g,b,a) -> (r,g,b). |
IntegerToArrayBit | This node returns the binary representation of the input integer value. |
Matrix4FromComponents | Computes a Matrix4 value from its components. |
Matrix4ToComponents | Extracts all 16 components of the input 'matrix' value. |
NodeDemux | This node separates all the input nodes according to their node-category in RealFlow. |
NumConvert | This node converts an input to a variety of outputs copying data. |
NumDemux | This node separates all possible components of a numeric value. |
ObjectMeshToMesh | This node creates a Mesh from the input 'object mesh'. |
QuaternionFromAxisAngle | Computes a Quaternion from a given axis and angle (in degrees). |
QuaternionFromComponents | Returns a Quaternion from its internal components. |
QuaternionToAxisAngle | Returns the axis and the angle (in degrees) of the input Quaternion. |
QuaternionToComponents | Returns the Quaternion's internal components. |
RealWaveMeshToMesh | This node creates a Mesh from the input 'realwave mesh'. |
Vector3FromComponents | Computes a vector value from its components. |
Vector3ToColor4 | Converts a Vector3 to a Color4 value. Mapping (x,y,z) to (r,g,b,a) values results, e.g. to (x,y,z) -> (x,y,z,1). |
Vector3ToComponents | Extracts the components of the input 'vector' value. |
ArrayBitFromString
This node returns a bit array using the input string characters as a reference.
Output 'array' size is the same as the number of characters of the input.
If the character '0' is at some position, that position bit is set to zero. Otherwise it's set to 1.
Inputs
Name | Types | PassThrough | Description |
---|---|---|---|
string | String (1) | The string |
Outputs
Name | Types | PassThrough | Description |
---|---|---|---|
bit array | Bit | The bit array |
ArrayBitToInteger
This node converts the binary representation of the input into a 32 bit integer value. If the input bit array is smaller than 32 bit, the rest of the left bits are treated as 0.
Inputs
Name | Types | PassThrough | Description |
---|---|---|---|
bit | Bit | The binary representation of the input. Its size should be 32 or smaller |
Outputs
Name | Types | PassThrough | Description |
---|---|---|---|
integer | Integer | The value represented by the input |
ArrayBitToInteger64
This node converts the binary representation of the input into a 64 bit integer value. If the input bit array is smaller than 64 bit, the rest of the left bits are treated as 0.
Inputs
Name | Types | PassThrough | Description |
---|---|---|---|
bit | Bit | The binary representation of the input. Its size should be 64 or smaller |
Outputs
Name | Types | PassThrough | Description |
---|---|---|---|
integer64 | Integer64 | The value represented by the input |
ArrayBitToString
This node returns a string version of the input bit array in a form similar like: "01001011".
Inputs
Name | Types | PassThrough | Description |
---|---|---|---|
array | Bit | through | The array |
first | Integer (1) | The first element of the input array to be converted to character for the output. Negative values are clamped to 0 | |
size | Integer (1) | The number of input values to take into account for the output string. If value is negative then there is no limit |
Outputs
Name | Types | PassThrough | Description |
---|---|---|---|
string | String | The string | |
through | PassThrough | array | The input 'array' |
Color4FromComponents
Returns a color value defined by its components.
Inputs
Name | Types | PassThrough | Description |
---|---|---|---|
r | Real | The red component | |
g | Real | The green component | |
b | Real | The blue component | |
a | Real | The alpha component |
Outputs
Name | Types | PassThrough | Description |
---|---|---|---|
color | Color4 | The color |
Color4Info
Returns information about the components of the input 'color' value.
Inputs
Name | Types | PassThrough | Description |
---|---|---|---|
color | Color4 | The color |
Outputs
Name | Types | PassThrough | Description |
---|---|---|---|
r | Real | The red component | |
g | Real | The green component | |
b | Real | The blue component | |
a | Real | The alpha component | |
h | Real | The hue component | |
s | Real | The saturation component | |
v | Real | The value component | |
vector rgb | Vector3 | The RGB-Values as a vector3 | |
vector hsv | Vector3 | The HSV-Values as a vector3 |
Color4RgbFromHsv
This node is executed in parallel according to its input pins size.
This node returns a color in RGB representation described by the input HSV components.
Inputs
Name | Types | PassThrough | Description |
---|---|---|---|
hue | Real | The Hue of the input color. From 0 to 360 | |
saturation | Real | The Saturation of the input color. From 0 to 1 | |
value | Real | The Value or brightness of the input color. From 0 to 1 |
Outputs
Name | Types | PassThrough | Description |
---|---|---|---|
color | Color4 | The output color in RGB representation |
Color4RgbToHsv
This node is executed in parallel according to its input pins size.
This node returns the components of the RGB color in the HSV color representation model.
Inputs
Name | Types | PassThrough | Description |
---|---|---|---|
color | Color4 | The input color in RGB representation |
Outputs
Name | Types | PassThrough | Description |
---|---|---|---|
hue | Real | The Hue of the color. From 0 to 360 | |
saturation | Real | The Saturation of the color. From 0 to 1 | |
value | Real | The Value or brightness of the color. From 0 to 1 |
Color4ToComponents
Returns the components of the input 'color' value.
Inputs
Name | Types | PassThrough | Description |
---|---|---|---|
color | Color4 | The color |
Outputs
Name | Types | PassThrough | Description |
---|---|---|---|
r | Real | The red component | |
g | Real | The green component | |
b | Real | The blue component | |
a | Real | The alpha component |
Color4ToVector3
This node is executed in parallel according to its input pins size.
Converts the RGB values of Color4 to a Vector3 value. Mapping (r,g,b,a) to (x,y,z) results e.g., in (r,g,b,a) -> (r,g,b).
Inputs
Name | Types | PassThrough | Description |
---|---|---|---|
color4 | Color4 | The color4 |
Outputs
Name | Types | PassThrough | Description |
---|---|---|---|
vector3 | Vector3 | The vector3 |
IntegerToArrayBit
This node returns the binary representation of the input integer value.
Inputs
Name | Types | PassThrough | Description |
---|---|---|---|
integer | The integer |
Outputs
Name | Types | PassThrough | Description |
---|---|---|---|
bit | Bit | The binary representation of the input. Its size can be 32 or 64 |
Matrix4FromComponents
Computes a Matrix4 value from its components.
Inputs
Name | Types | PassThrough | Description |
---|---|---|---|
m00 | Real | The m00 | |
m01 | Real | The m01 | |
m02 | Real | The m02 | |
m03 | Real | The m03 | |
m10 | Real | The m10 | |
m11 | Real | The m11 | |
m12 | Real | The m12 | |
m13 | Real | The m13 | |
m20 | Real | The m20 | |
m21 | Real | The m21 | |
m22 | Real | The m22 | |
m23 | Real | The m23 | |
m30 | Real | The m30 | |
m31 | Real | The m31 | |
m32 | Real | The m32 | |
m33 | Real | The m33 |
Outputs
Name | Types | PassThrough | Description |
---|---|---|---|
matrix | Matrix4 | The matrix |
Matrix4ToComponents
Extracts all 16 components of the input 'matrix' value.
Inputs
Name | Types | PassThrough | Description |
---|---|---|---|
matrix | Matrix4 | The matrix |
Outputs
Name | Types | PassThrough | Description |
---|---|---|---|
m00 | Real | The m00 | |
m01 | Real | The m01 | |
m02 | Real | The m02 | |
m03 | Real | The m03 | |
m10 | Real | The m10 | |
m11 | Real | The m11 | |
m12 | Real | The m12 | |
m13 | Real | The m13 | |
m20 | Real | The m20 | |
m21 | Real | The m21 | |
m22 | Real | The m22 | |
m23 | Real | The m23 | |
m30 | Real | The m30 | |
m31 | Real | The m31 | |
m32 | Real | The m32 | |
m33 | Real | The m33 |
NodeDemux
This node separates all the input nodes according to their node-category in RealFlow.
Inputs
Name | Types | PassThrough | Description |
---|---|---|---|
node | RealFlow Node | The node |
Outputs
Name | Types | PassThrough | Description |
---|---|---|---|
emitter | The emitter | ||
daemon | The daemon | ||
object | The object | ||
particle mesh legacy | The particle mesh legacy | ||
spline node | The spline node | ||
particle mesh | The particle mesh | ||
particle mesh vdb | The particle mesh vdb | ||
hybrido mesh | The hybrido mesh | ||
hybrido mesh vdb | The hybrido mesh vdb | ||
camera | The camera | ||
multi body | The multi body | ||
multi joint | The multi joint | ||
idoc | The idoc | ||
hybrido domain | The hybrido domain | ||
hybrido emitter | The hybrido emitter | ||
hybrido mist | The hybrido mist | ||
dyverso domain | The dyverso domain | ||
dyverso emitter | The dyverso emitter | ||
group | The group | ||
multi servo pos linear | The multi servo pos linear | ||
multi servo pos angular | The multi servo pos angular | ||
multi servo vel linear | The multi servo vel linear | ||
multi servo vel angular | The multi servo vel angular | ||
hybrido splash | The hybrido splash | ||
hybrido foam | The hybrido foam | ||
hybrido bubbles | The hybrido bubbles | ||
hybrido wet | The hybrido wet | ||
hybrido waterline | The hybrido waterline | ||
hybrido splash and foam | The hybrido splash and foam | ||
hybrido wet and foam | The hybrido wet and foam |
NumConvert
This node converts an input to a variety of outputs copying data.
Input type | Input | Integer | Real | Vector3 | Color4 | String |
---|---|---|---|---|---|---|
Integer | 128 | 128 | 128.0 | 128.0 128.0 128.0 | 0.007812 0.007812 0.007812 1.0 [1] | "128" |
Real | 0.7 | 0 [2] | 0.7 | 0.7 0.7 0.7 | 0.7 0.7 0.7 1.0 [3] | "0.7" |
Vector3 | 0.1 0.2 0.3 | 0 [2][4] | 0.1 [4] | 0.1 0.2 0.3 | 0.1 0.2 0.3 1.0 [3] | "0.1 0.2 0.3" |
Color4 | 0.5 0.6 0.7 0.9 | 0 [5][6] | 0.5 [6] | 0.5 0.6 0.7 | 0.5 0.6 0.7 0.9 | "0.5 0.6 0.7 0.9" |
Real[2] | 2.1, 0.4 | 2, 0 [2] | 2.1, 0.4 | 2.1 2.1 2.1, 0.4 0.4 0.4 | 1.0 1.0 1.0 1.0, 0.4 0.4 0.4 1.0 [3] | "2.1, 0.4" |
1 When converted to Color4, input Integer values are clamped in range 0..65535 and normalized to 0.0..1.0. The choice of 65535 is related to the direct input of 16 bit displacement image data.
2 When converted to Integer, input Real values have their decimal part removed.
3 When converted to Color4, input Real and Vector3 values are clamped in range 0.0..1.0.
4 When converted to a scalar, the first component (X) of the input Vector3 value is the result choice.
5 When converted to an integer, the first component (Red) of the input Color4 is multiplied by 65535. The choice of 65535 is related to the direct input of 16 bit displacement image data.
6 When converted to a scalar, the first component (Red) of the input Color4 value is the result choice.
Inputs
Name | Types | PassThrough | Description |
---|---|---|---|
input | Input value to convert |
Outputs
Name | Types | PassThrough | Description |
---|---|---|---|
integer | Integer | Input converted to Integer | |
integer64 | Integer64 | Input converted to Integer64 | |
real | Real | Input converted to Real | |
vector3 | Vector3 | Input converted to Vector3 | |
color4 | Color4 | Input converted to Color4 | |
string | String | Input converted to String |
NumDemux
This node separates all possible components of a numeric value.
It is intended to be used when the specialization of the pin is too generic but the user knows the real type of the stored value of the input.
Inputs
Name | Types | PassThrough | Description |
---|---|---|---|
input | integerinteger64realvector3color4gradientmatrix4quaternion | The input |
Outputs
Name | Types | PassThrough | Description |
---|---|---|---|
integer | Integer | input | The integer |
integer64 | Integer64 | input | The integer64 |
real | Real | input | The real |
vector3 | Vector3 | input | The vector3 |
color4 | Color4 | input | The color4 |
gradient | ColorGradient | input | The gradient |
matrix4 | Matrix4 | input | The matrix4 |
quaternion | Quaternion | input | The quaternion |
ObjectMeshToMesh
This node creates a Mesh from the input 'object mesh'.
If the object contains UV coordinates defined by face they will be baked into the vertices.
Inputs
Name | Types | PassThrough | Description |
---|---|---|---|
object mesh | ObjectMesh | The object mesh |
Outputs
Name | Types | PassThrough | Description |
---|---|---|---|
mesh | Mesh | The mesh |
QuaternionFromAxisAngle
Computes a Quaternion from a given axis and angle (in degrees).
Inputs
Name | Types | PassThrough | Description |
---|---|---|---|
axis | Vector3 | The axis | |
angle | Real | The angle |
Outputs
Name | Types | PassThrough | Description |
---|---|---|---|
quaternion | Quaternion | The quaternion |
QuaternionFromComponents
Returns a Quaternion from its internal components.
Inputs
Name | Types | PassThrough | Description |
---|---|---|---|
x | The x | ||
y | The y | ||
z | The z | ||
w | The w |
Outputs
Name | Types | PassThrough | Description |
---|---|---|---|
quaternion | The quaternion |
QuaternionToAxisAngle
Returns the axis and the angle (in degrees) of the input Quaternion.
Inputs
Name | Types | PassThrough | Description |
---|---|---|---|
quaternion | Quaternion | The quaternion |
Outputs
Name | Types | PassThrough | Description |
---|---|---|---|
axis | Vector3 | The axis | |
angle | Real | The angle |
QuaternionToComponents
Returns the Quaternion's internal components.
Inputs
Name | Types | PassThrough | Description |
---|---|---|---|
quaternion | Quaternion | The quaternion |
Outputs
Name | Types | PassThrough | Description |
---|---|---|---|
x | Real | The x | |
y | Real | The y | |
z | Real | The z | |
w | Real | The w |
RealWaveMeshToMesh
This node creates a Mesh from the input 'realwave mesh'.
Inputs
Name | Types | PassThrough | Description |
---|---|---|---|
realwave mesh | RealWaveMesh | The realwave mesh |
Outputs
Name | Types | PassThrough | Description |
---|---|---|---|
mesh | Mesh | The mesh |
Vector3FromComponents
Computes a vector value from its components.
Inputs
Name | Types | PassThrough | Description |
---|---|---|---|
x | The x | ||
y | The y | ||
z | The z |
Outputs
Name | Types | PassThrough | Description |
---|---|---|---|
vector3 | Vector3 | The vector3 |
Vector3ToColor4
This node is executed in parallel according to its input pins size.
Converts a Vector3 to a Color4 value. Mapping (x,y,z) to (r,g,b,a) values results, e.g. to (x,y,z) -> (x,y,z,1).
Inputs
Name | Types | PassThrough | Description |
---|---|---|---|
vector3 | Vector3 | The vector3 |
Outputs
Name | Types | PassThrough | Description |
---|---|---|---|
color4 | Color4 | The color4 |
Vector3ToComponents
Extracts the components of the input 'vector' value.
Inputs
Name | Types | PassThrough | Description |
---|---|---|---|
vector | Vector3 | The vector |
Outputs
Name | Types | PassThrough | Description |
---|---|---|---|
x | Real | The x | |
y | Real | The y | |
z | Real | The z |