RKM - Procedural Primitive Parameters

These are the primitive parameters that can be configured. If you do not include them, they will be reset to their default values.  

Meshing 

-rfrk_fieldType (integer: 1) 0 Metaball field, 1 Sphere field

-rfrk_polygonSize (float: 0.05) from 0 

-rfrk_smooth (float: 50.0) from 0 to 100 

-rfrk_autoPolygonSize (boolean) 

-rfrk_isoLevel (float: 0.0)

Sequences 

If you want to include more than one sequence, you just have to duplicate them.

-rfrk_fileSeq (string) between “ “

-rfrk_radius (float: 0.08) from 0

-rfrk_core (float: 0.0) from 0 to 1

-rfrk_splash (float: 0.0) from 0 to 1

-rfrk_velocity (float: 1000) from 0

-rfrk_wait (boolean: 0)

-rfrk_subtractive (boolean: 0)

Camera 

-rfrk_cameraPosition (float[3]: 0.0 0.0 -1.0 )

-rfrk_cameraTarget (float[3]: 0.0 0.0 0.0 ) this is the camera's target, not a direction 

-rfrk_cameraUp (float[3]: 0.0 1.0 0.0)

-rfrk_nearPlane (float:0 .0) -rfrk_farPlane (float: 1000.0)

-rfrk_fov (float: 35.0) -rfrk_fovRatio (float: 1.3333)

-rfrk_fps (float: 25) -rfrk_frame (integer)

-rfrk_motionBlur () 

-rfrk_motionBlurType (integer: 2) 1 motion blur in seconds, 2 motion blur in frames 

-rfrk_shutterOpen (float)

-rfrk_shutterClose (float)

-rfrk_shutterAngle (float)

Clipping

-rfrk_cameraClip (boolean)

-rfrk_objectClip (boolean)

-rfrk_filesClip (string) between “ “

-rfrk_outInside (boolean) Filters

-rfrk_filterMesh (boolean)

-rfrk_tension (float: 0) from 0

-rfrk_relax (float: 0) from 0

-rfrk_steps (integer: 1) 

Optimizations

-rfrk_optimize (boolean: 0)

-rfrk_cameraDistance (float: 5.0) from 0

-rfrk_polyReducPercent (float: 90) from 0 to 100

-rfrk_qualityFactor (float: 0.9) from 0 to 1

RealWave 

-rfrk_insertRealwave (boolean)

-rfrk_fileRW (string) between “ “

-rfrk_rwPolygonSize (float: 0.1) from 0

-rfrk_rwResolution (float: 1.0) from 0

-rfrk_rwRadius (float: 0.1) from 0

Import Bin Mesh 

-rfrk_insertMeshBin (boolean)

-rfrk_fileMeshBin (string) between “ “

-rfrk_waitMeshBin (boolean) 

Export and Lazy Compute

-rfrk_lazyCompute (boolean)

-rfrk_lazyComputePath (string) between “ “

-rfrk_exportMesh (boolean)

-rfrk_exportMeshPath (string) between “ “

System 

-rfrk_sizeMB (float: 500) from 10

-rfrk_threads (integer: 0) 0 to use all threads 

Primitive Type 

-rfrk_primitiveType (integer: 0) 0 for PointsPolygons Mesh, 1 for Subdivision Mesh

Reference Mode 

-rfrk_delayedReadArchive (boolean) 

Magnitudes

“0” or “1” are used to determine which magnitudes you want to export. To activate motion blur it is necessary to export velocity.

-rfrk_magAge (boolean: 0)

-rfrk_magDensity (boolean: 0)

-rfrk_magForce (boolean: 0)

-rfrk_magIdentity (boolean: 0)

-rfrk_magIsolation (boolean: 0)

-rfrk_magMass (boolean: 0)

-rfrk_magNeighbors (boolean: 0)

-rfrk_magPressure (boolean: 0)

-rfrk_magTemperature (boolean: 0)

-rfrk_magVelocity (boolean: 0) 1 is recommended

-rfrk_magViscosity (boolean: 0)

-rfrk_magVorticity (boolean: 0)

RFRK_Mesher – Examples

RIB Call

Procedural “RunProgram“ [“rfrk2_runprogram“ “rfrk2_mesher -rfrk_fileSeq \“/home/ user/scenes/test/particles/Circle0100023.bin\“ -rfrk_wait 0 -rfrk_radius 0.08 -rfrk_ core 0 -rfrk_splash 0 -rfrk_velocity 1000 -rfrk_subtractive 0 -rfrk_exportMesh 1 -rfrk_ exportMeshPath /tmp -rfrk_primitiveType 0 -rfrk_delayedReadArchive 0 -rfrk_polygonSize 0.05 -rfrk_autoPolygonSize 0 -rfrk_smooth 50 -rfrk_isoLevel 0 -rfrk_fieldType 1 -rfrk_ filterMesh 0 -rfrk_tension 0 -rfrk_relax 0 -rfrk_steps 1 -rfrk_objectClip 0 -rfrk_cameraClip 0 -rfrk_outInside 1 -rfrk_optimize 0 -rfrk_qualityFactor 0.9 -rfrk_polyReducPercent 90 -rfrk_cameraDistance 5 -rfrk_insertRealwave 0 -rfrk_fileRW \“\“ -rfrk_rwPolygonSize 0.1 -rfrk_rwResolution 1 -rfrk_rwRadius 0.1 -rfrk_insertMeshBin 0 -rfrk_sizeMB 500 -rfrk_threads 0 -rfrk_magAge 0 -rfrk_magDensity 0 -rfrk_magForce 0 -rfrk_magMass 0 -rfrk_magVelocity 1 -rfrk_magViscosity 0 -rfrk_magVorticity 0 -rfrk_magNeighbors 0 -rfrk_ magIsolation 0 -rfrk_magTemperature 0 -rfrk_magPressure 0 -rfrk_fps 25 -rfrk_nearPlane 0.1 -rfrk_farPlane 1000 -rfrk_fov 54.43213037 -rfrk_fovRatio 1.5 -rfrk_cameraPosition 8.420781451 6.315586088 8.420781451 -rfrk_cameraTarget 0.0 0.0 0.0 -rfrk_cameraUp -0.3312945782 0.8834522086 -0.3312945782 -rfrk_shutterOpen 0 -rfrk_shutterClose 1 -rfrk_motionBlur 0 -rfrk_motionBlurType 2 -rfrk_shutterAngle 80 -rfrk_frame 23 -rfrk_ meshName rfrkMesh2Shape“] [-100000 100000 -100000 100000 -100000 100000]

Reading Primitive Variables Inside A RenderMan Shader 

Surface age and velocity( varying float age = 0.0; varying vector velocity = (0.0,0.0,0.0) )

{

// Here the age and velocity primitive variables (attached to the procedural primitive) can be read and used for shading.

}