Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Current »

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

NameDescription
ArrayBitFromStringThis node returns a bit array using the input string characters as a reference.
ArrayBitToIntegerThis 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.
ArrayBitToInteger64This 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.
ArrayBitToStringThis node returns a string version of the input bit array in a form similar like: "01001011".
Color4FromComponentsReturns a color value defined by its components.
Color4InfoReturns information about the components of the input 'color' value.
Color4RgbFromHsvThis node returns a color in RGB representation described by the input HSV components.
Color4RgbToHsvThis node returns the components of the RGB color in the HSV color representation model.
Color4ToComponentsReturns the components of the input 'color' value.
Color4ToVector3Converts 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).
IntegerToArrayBitThis node returns the binary representation of the input integer value.
Matrix4FromComponentsComputes a Matrix4 value from its components.
Matrix4ToComponentsExtracts all 16 components of the input 'matrix' value.
NodeDemuxThis node separates all the input nodes according to their node-category in RealFlow.
NumConvertThis node converts an input to a variety of outputs copying data.
NumDemuxThis node separates all possible components of a numeric value.
ObjectMeshToMeshThis node creates a Mesh from the input 'object mesh'.
QuaternionFromAxisAngleComputes a Quaternion from a given axis and angle (in degrees).
QuaternionFromComponentsReturns a Quaternion from its internal components.
QuaternionToAxisAngleReturns the axis and the angle (in degrees) of the input Quaternion.
QuaternionToComponentsReturns the Quaternion's internal components.
RealWaveMeshToMeshThis node creates a Mesh from the input 'realwave mesh'.
Vector3FromComponentsComputes a vector value from its components.
Vector3ToColor4Converts 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).
Vector3ToComponentsExtracts 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

NameTypesPassThroughDescription
stringString (1) 

The string

Outputs

NameTypesPassThroughDescription
bit arrayBit 

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

NameTypesPassThroughDescription
bitBit 

The binary representation of the input. Its size should be 32 or smaller

Outputs

NameTypesPassThroughDescription
integerInteger 

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

NameTypesPassThroughDescription
bitBit 

The binary representation of the input. Its size should be 64 or smaller

Outputs

NameTypesPassThroughDescription
integer64Integer64 

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

NameTypesPassThroughDescription
arrayBitthrough

The array

firstInteger (1) 

The first element of the input array to be converted to character for the output. Negative values are clamped to 0

sizeInteger (1) 

The number of input values to take into account for the output string. If value is negative then there is no limit

Outputs

NameTypesPassThroughDescription
stringString 

The string

throughPassThrougharray

The input 'array'

Color4FromComponents

Returns a color value defined by its components.

Inputs

NameTypesPassThroughDescription
rReal 

The red component

gReal 

The green component

bReal 

The blue component

aReal 

The alpha component

Outputs

NameTypesPassThroughDescription
colorColor4 

The color

Color4Info

Returns information about the components of the input 'color' value.

Inputs

NameTypesPassThroughDescription
colorColor4 

The color

Outputs

NameTypesPassThroughDescription
rReal 

The red component

gReal 

The green component

bReal 

The blue component

aReal 

The alpha component

hReal 

The hue component

sReal 

The saturation component

vReal 

The value component

vector rgbVector3 

The RGB-Values as a vector3

vector hsvVector3 

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

NameTypesPassThroughDescription
hueReal 

The Hue of the input color. From 0 to 360

saturationReal 

The Saturation of the input color. From 0 to 1

valueReal 

The Value or brightness of the input color. From 0 to 1

Outputs

NameTypesPassThroughDescription
colorColor4 

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

NameTypesPassThroughDescription
colorColor4 

The input color in RGB representation

Outputs

NameTypesPassThroughDescription
hueReal 

The Hue of the color. From 0 to 360

saturationReal 

The Saturation of the color. From 0 to 1

valueReal 

The Value or brightness of the color. From 0 to 1

Color4ToComponents

Returns the components of the input 'color' value.

Inputs

NameTypesPassThroughDescription
colorColor4 

The color

Outputs

NameTypesPassThroughDescription
rReal 

The red component

gReal 

The green component

bReal 

The blue component

aReal 

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

NameTypesPassThroughDescription
color4Color4 

The color4

Outputs

NameTypesPassThroughDescription
vector3Vector3 

The vector3

IntegerToArrayBit

This node returns the binary representation of the input integer value.

Inputs

NameTypesPassThroughDescription
integer
 Numeric (1)

Integer
Integer64

 

The integer

Outputs

NameTypesPassThroughDescription
bitBit 

The binary representation of the input. Its size can be 32 or 64

Matrix4FromComponents

Computes a Matrix4 value from its components.

Inputs

NameTypesPassThroughDescription
m00Real 

The m00

m01Real 

The m01

m02Real 

The m02

m03Real 

The m03

m10Real 

The m10

m11Real 

The m11

m12Real 

The m12

m13Real 

The m13

m20Real 

The m20

m21Real 

The m21

m22Real 

The m22

m23Real 

The m23

m30Real 

The m30

m31Real 

The m31

m32Real 

The m32

m33Real 

The m33

Outputs

NameTypesPassThroughDescription
matrixMatrix4 

The matrix

Matrix4ToComponents

Extracts all 16 components of the input 'matrix' value.

Inputs

NameTypesPassThroughDescription
matrixMatrix4 

The matrix

Outputs

NameTypesPassThroughDescription
m00Real 

The m00

m01Real 

The m01

m02Real 

The m02

m03Real 

The m03

m10Real 

The m10

m11Real 

The m11

m12Real 

The m12

m13Real 

The m13

m20Real 

The m20

m21Real 

The m21

m22Real 

The m22

m23Real 

The m23

m30Real 

The m30

m31Real 

The m31

m32Real 

The m32

m33Real 

The m33

NodeDemux

This node separates all the input nodes according to their node-category in RealFlow.

Inputs

NameTypesPassThroughDescription
nodeRealFlow Node 

The node

Outputs

NameTypesPassThroughDescription
emitter
 StandardEmitter

StandardEmitter
RealFlowNode

 

The emitter

daemon
 Daemon

Daemon
RealFlowNode

 

The daemon

object
 Object

Object
RealFlowNode

 

The object

particle mesh legacy
 ParticleLegacyMesh

ParticleLegacyMesh
RealFlowNode

 

The particle mesh legacy

spline node
 SplineNode

SplineNode
RealFlowNode

 

The spline node

particle mesh
 ParticleMesh

ParticleMesh
RealFlowNode

 

The particle mesh

particle mesh vdb
 ParticleMesh_VDB

ParticleMesh_VDB
RealFlowNode

 

The particle mesh vdb

hybrido mesh
 HybridoMesh

HybridoMesh
RealFlowNode

 

The hybrido mesh

hybrido mesh vdb
 HybridoMesh_VDB

HybridoMesh_VDB
RealFlowNode

 

The hybrido mesh vdb

camera
 Camera

Camera
RealFlowNode

 

The camera

multi body
 MultiBody

MultiBody
RealFlowNode

 

The multi body

multi joint
 MultiJoint

MultiJoint
RealFlowNode

 

The multi joint

idoc
 Idoc

IDOC
RealFlowNode

 

The idoc

hybrido domain
 HybridoDomain

HybridoDomain
RealFlowNode

 

The hybrido domain

hybrido emitter
 HybridoEmitter

HybridoEmitter
RealFlowNode

 

The hybrido emitter

hybrido mist
 HybridoMist

HybridoMist
RealFlowNode

 

The hybrido mist

dyverso domain
 DyversoDomain

DyversoDomain
RealFlowNode

 

The dyverso domain

dyverso emitter
 DyversoEmitter

DyversoEmitter
RealFlowNode

 

The dyverso emitter

group
 RealFlowGroup

RealFlowGroup
RealFlowNode

 

The group

multi servo pos linear
 MultiServoPosLinear

MultiServoPosLinear
RealFlowNode

 

The multi servo pos linear

multi servo pos angular
 MultiServoPosAngular

MultiServoPosAngular
RealFlowNode

 

The multi servo pos angular

multi servo vel linear
 MultiServoVelLinear

MultiServoVelLinear
RealFlowNode

 

The multi servo vel linear

multi servo vel angular
 MultiServoVelAngular

MultiServoVelAngular
RealFlowNode

 

The multi servo vel angular

hybrido splash
 HybridoSplash

HybridoSplash
RealFlowNode

 

The hybrido splash

hybrido foam
 HybridoFoam

HybridoFoam
RealFlowNode

 

The hybrido foam

hybrido bubbles
 HybridoBubbles

HybridoBubbles
RealFlowNode

 

The hybrido bubbles

hybrido wet
 HybridoWet

HybridoWet
RealFlowNode

 

The hybrido wet

hybrido waterline
 HybridoWaterLine

HybridoWaterLine
RealFlowNode

 

The hybrido waterline

hybrido splash and foam
 HybridoSplashAndFoam

HybridoSplashAndFoam
RealFlowNode

 

The hybrido splash and foam

hybrido wet and foam
 HybridoWetAndFoam

HybridoWetAndFoam
RealFlowNode

 

The hybrido wet and foam

NumConvert

This node converts an input to a variety of outputs copying data.

Input typeInputIntegerRealVector3Color4String
Integer128128128.0128.0 128.0 128.00.007812 0.007812 0.007812 1.0 [1]"128"
Real0.70 [2]0.70.7 0.7 0.70.7 0.7 0.7 1.0 [3]

"0.7"

Vector30.1 0.2 0.30 [2][4]0.1 [4]0.1 0.2 0.30.1 0.2 0.3 1.0 [3]"0.1 0.2 0.3"
Color40.5 0.6 0.7 0.90 [5][6]0.5 [6]0.5 0.6 0.70.5 0.6 0.7 0.9"0.5 0.6 0.7 0.9"
Real[2]2.1, 0.42, 0 [2]2.1, 0.42.1 2.1 2.1, 0.4 0.4 0.41.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

NameTypesPassThroughDescription
input
 Numeric

Integer
Integer64
Real
Vector3
Color4

 

Input value to convert

Outputs

NameTypesPassThroughDescription
integerInteger 

Input converted to Integer

integer64Integer64 

Input converted to Integer64

realReal 

Input converted to Real

vector3Vector3 

Input converted to Vector3

color4Color4 

Input converted to Color4

stringString 

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

NameTypesPassThroughDescription
input
 Numeric

Integer
Integer64
Real
Vector3
Color4
Quaternion
Matrix4

integerinteger64realvector3color4matrix4quaternion

The input

Outputs

NameTypesPassThroughDescription
integerIntegerinput

The integer

integer64Integer64input

The integer64

realRealinput

The real

vector3Vector3input

The vector3

color4Color4input

The color4

matrix4Matrix4input

The matrix4

quaternionQuaternioninput

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

NameTypesPassThroughDescription
object meshObjectMesh 

The object mesh

Outputs

NameTypesPassThroughDescription
meshMesh 

The mesh

QuaternionFromAxisAngle

Computes a Quaternion from a given axis and angle (in degrees).

Inputs

NameTypesPassThroughDescription
axisVector3 

The axis

angleReal 

The angle

Outputs

NameTypesPassThroughDescription
quaternionQuaternion 

The quaternion

QuaternionFromComponents

Returns a Quaternion from its internal components.

Inputs

NameTypesPassThroughDescription
x
 Numeric

Integer
Integer64
Real
Vector3
Color4
Quaternion
Matrix4

 

The x

y
 Numeric

Integer
Integer64
Real
Vector3
Color4
Quaternion
Matrix4

 

The y

z
 Numeric

Integer
Integer64
Real
Vector3
Color4
Quaternion
Matrix4

 

The z

w
 Numeric

Integer
Integer64
Real
Vector3
Color4
Quaternion
Matrix4

 

The w

Outputs

NameTypesPassThroughDescription
quaternion
 Numeric

Integer
Integer64
Real
Vector3
Color4
Quaternion
Matrix4

 

The quaternion

QuaternionToAxisAngle

Returns the axis and the angle (in degrees) of the input Quaternion.

Inputs

NameTypesPassThroughDescription
quaternionQuaternion 

The quaternion

Outputs

NameTypesPassThroughDescription
axisVector3 

The axis

angleReal 

The angle

QuaternionToComponents

Returns the Quaternion's internal components.

Inputs

NameTypesPassThroughDescription
quaternionQuaternion 

The quaternion

Outputs

NameTypesPassThroughDescription
xReal 

The x

yReal 

The y

zReal 

The z

wReal 

The w

RealWaveMeshToMesh

This node creates a Mesh from the input 'realwave mesh'.

Inputs

NameTypesPassThroughDescription
realwave meshRealWaveMesh 

The realwave mesh

Outputs

NameTypesPassThroughDescription
meshMesh 

The mesh

Vector3FromComponents

Computes a vector value from its components.

Inputs

NameTypesPassThroughDescription
x
 Numeric

Integer
Real

 

The x

y
 Numeric

Integer
Real

 

The y

z
 Numeric

Integer
Real

 

The z

Outputs

NameTypesPassThroughDescription
vector3Vector3 

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

NameTypesPassThroughDescription
vector3Vector3 

The vector3

Outputs

NameTypesPassThroughDescription
color4Color4 

The color4

Vector3ToComponents

Extracts the components of the input 'vector' value.

Inputs

NameTypesPassThroughDescription
vectorVector3 

The vector

Outputs

NameTypesPassThroughDescription
xReal 

The x

yReal 

The y

zReal 

The z

  • No labels