RFMeshes

Description

This extension enables maxwell to load realflow meshes just before starting to render. These meshes are stored in files with realflow .bin mesh format. This decreases substantially the size of .mxs files.

Besides loading vertices and faces, it creates one or more UV channels. The first UV channel, or channel "0", stores the native vertices UV's, which realflow creates mapping either particle UV's, speed, pressure or temperature. If there were more than 1 particle emitter involved in creating the mesh, the following UV channels are numbered from 1 to the number of fluids or particle emitters used to create the mesh. The "ith" channel contains the weight of the particles of the "ith" particles emitter in every vertex. This is useful to mix colors in the mesh.

 

Parameters

Name

Type

Description

"RFMesh File"

char*

RF mesh file filename

"MB Factor"

float

Motion blur multiplier

"Motion blur"

byte

Enable or not motion blur

"Shutter 1/"

float

Camera shutterspeed

"Smooth Normals"byteCalculate or not normal smoothing
"Smooth Angle"floatThreshold angle to smooth normals

 

"RFMesh File"

Points to the file which stores the mesh. It is a NULL terminated string.

Example:

char* file = "/home/lepe/Mesh01_00051.bin"; 
extParam->setString( "RFMesh File", file ); 

 

"MB Factor"

Multiplier to increase or decrease the amount of motion blur of the mesh vertices. Can go from 0.0 to 1000000.0. Default is 1.0.

Example:

float factor = 0.3f; 
extParam->setFloat( "MB Factor", factor );


"Motion blur"

Do or not motion blur.Can be 0 or 1.

Example:

unsigned char doMB = 0;
extParam->setByte( "Motion blur", doMB );

 

"Shutter 1/"

Shutterspeed of the active camera. Affects the amount of motion of the mesh vertices. It is the inverse of the time the shutter is open.

Example:

float shutter = 125.f;
extParam->setFloat( "Shutter 1/", shutter );

 

"Smooth Normals"

Calculate or not smoothed normals.

Example:

unsigned char doSmooth = 0; 
extParam->setByte( "Smooth Normals", doSmooth );

 

"Smooth Angle"

Threshold angle below which normals will be smoothed.

Example:

float angle = 65.f; 
extParam->setFloat( "Smooth Angle", angle );