...
This extension is a geometry modifier. It loads a particle file, or reads particles stored internally and creates instances of the selected geometry at the particles positions.
Example of how to create a MaxwellCloner object, add a uv channel, set its custom type to "Density" and enable loading the particle densities arraymodifier, and apply it to an already existing object in the scene.
Code Block | ||||
---|---|---|---|---|
| ||||
CextensionManager* extensionManager = CextensionManager::instance(); CgeometryModifierExtension* geomModifExtension = extensionManager->createGeometryModifierExtension( "MaxwellCloner" ); //Get the extension container. When using this method of getting the container, //nearly all parameters have default values, and there is no need to explicitly set them. MXparamList* clonerParams = geomModifExtension->getExtensionData(); //Fill the required data char* filename = "/home/rocco/Emitter01_00023.bin"; clonerParams->setString( "FileName", filename ); //Get the object we want to clone Cmaxwell::Cobject mxObject = scene->getObject( "MyGeometry" ); isOk = mxObject.applyGeometryModifierExtension( clonerParams ); |
...
Name | Type | Description |
---|---|---|
char* | Particles filename | |
float | Particle radius multiplier | |
float | Motion blur multiplier | |
float | Camera shutterspeed | |
"Load particles %" | float | Percentage of particles to load |
" Start offset" | unsigned int | Skip some particles before loading |
"Create N particles per particle" | unsigned int | Enables Multipoint feature if N > 0 |
"Extra particles dispersion" | float | Dispersion of the extra particles cloud |
"Extra particles deformation" | float | Deformation of the extra particles cloud |
"Use velocity" | byte | Use the velocity vector to as Y axis of the instance |
"Scale with particle radius" | byte | Scale instances with particle radius |
"PARTICLE_POSITIONS" | float* | Array of particle positions |
"PARTICLE_SPEEDS" | float* | Array of particle speeds |
"PARTICLE_RADII" | float* | Array of particle radii |
"PARTICLE_IDS" | int* | Array of particleID's |
...