Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

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

...

RFRK_Particler – Examples

RIB Call 

Procedural “RunProgram“ [“rfrk2_runprogram“ “rfrk2_particler -rfrk_fileSeq \“/home/ user/scenes/test/particles/Circle0100049.bin\“ -rfrk_wait 0 -rfrk_size 0.05 -rfrk_ percentRandomSize 0 -rfrk_scaledByMagnitude 0 -rfrk_magnitude 6 -rfrk_magControlPoint 0 -rfrk_magControlValue 0 -rfrk_magControlType 1 -rfrk_magControlPoint 0.995049 -rfrk_ magControlValue 0 -rfrk_magControlType 1 -rfrk_magMinValue 0 -rfrk_magMaxValue 1 -rfrk_scaledByCameraDistance 0 -rfrk_camControlPoint 0 -rfrk_camControlValue 0 -rfrk_ camControlType 1 -rfrk_camControlPoint 1 -rfrk_camControlValue 0 -rfrk_camControlType 1 -rfrk_camMinDistance 0 -rfrk_camMaxDistance 1 -rfrk_renderType 0 -rfrk_core 0 -rfrk_ splash 0 -rfrk_maxVel 1000 -rfrk_percentTotalParticles 1 -rfrk_axis 2 -rfrk_isMultiPoint 1 -rfrk_mpDensity 50 -rfrk_mpDispersion 0.25 -rfrk_mpDeformation 0.4 -rfrk_mpSeed 12341 -rfrk_cameraClip 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.034309451 8.245098912 6.961129989 -rfrk_cameraTarget -0.09360077762 1.723860411 -1.054078181 -rfrk_cameraUp -0.3531934021 0.868299669 -0.3482960026 -rfrk_shutterOpen 0 -rfrk_shutterClose 1 -rfrk_motionBlur 0 -rfrk_motionBlurType 2 -rfrk_ shutterAngle 80 -rfrk_frame 49“] [-100000 100000 -100000 100000 -100000 100000]

 

Reading Primitive Variables Inside A RenderMan Shader 

...

• For “Sprites” and “Spheres” it's necessary to use uniform variables. 

 

surface age( uniform float age = 0.0; )

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

}

...