OGRE 2.1
Object-Oriented Graphics Rendering Engine
|
Class defining particle system based special effects. More...
#include <OgreParticleSystem.h>
Classes | |
class | CmdCull |
Command object for cull_each (see ParamCommand). More... | |
class | CmdEmittedEmitterQuota |
Command object for emittedEmitterQuota (see ParamCommand). More... | |
class | CmdHeight |
Command object for particle_height (see ParamCommand). More... | |
class | CmdIterationInterval |
Command object for iteration interval(see ParamCommand). More... | |
class | CmdLocalSpace |
Command object for local space (see ParamCommand). More... | |
class | CmdMaterial |
Command object for material (see ParamCommand). More... | |
class | CmdNonvisibleTimeout |
Command object for nonvisible timeout (see ParamCommand). More... | |
class | CmdQuota |
Command object for quota (see ParamCommand). More... | |
class | CmdRenderer |
Command object for renderer (see ParamCommand). More... | |
class | CmdSorted |
Command object for sorting (see ParamCommand). More... | |
class | CmdWidth |
Command object for particle_width (see ParamCommand). More... | |
Public Types | |
typedef FastArray< MovableObject * > | MovableObjectArray |
@See SceneManager::cullFrustum | |
Public Member Functions | |
ParticleSystem (IdType id, ObjectMemoryManager *objectMemoryManager, SceneManager *manager, const String &resourceGroupName) | |
Creates a particle system with no emitters or affectors. | |
virtual | ~ParticleSystem () |
ParticleIterator | _getIterator (void) |
Returns an iterator for stepping through all particles in this system. | |
LightList * | _getLightList () |
Returns a pointer to the current list of lights for this object. | |
SceneManager * | _getManager (void) const |
Get the manager of this object, if any (internal use only) | |
ObjectData & | _getObjectData () |
Returns a direct access to the ObjectData state. | |
const Matrix4 & | _getParentNodeFullTransform (void) const |
Returns the full transformation of the parent sceneNode or the attachingPoint node. | |
void | _notifyAttached (Node *parent) |
Overridden from MovableObject. | |
void | _notifyManager (SceneManager *man) |
Notify the object of it's manager (internal use only) | |
void | _notifyOrigin (const String &origin) |
Notify this particle system of it's origin. | |
virtual void | _notifyParentNodeMemoryChanged (void) |
@See Node::_callMemoryChangeListeners | |
virtual void | _notifyParticleResized (void) |
Internal callback used by Particles to notify their parent that they have been resized. | |
virtual void | _notifyParticleRotated (void) |
Internal callback used by Particles to notify their parent that they have been rotated. | |
virtual void | _notifyStaticDirty (void) const |
Called by SceneManager when it is telling we're a static MovableObject being dirty Don't call this directly. | |
virtual void | _releaseManualHardwareResources () |
Notifies the movable object that hardware resources were lost. | |
virtual void | _restoreManualHardwareResources () |
Notifies the movable object that hardware resources should be restored. | |
void | _update (Real timeElapsed) |
Updates the particles in the system based on time elapsed. | |
void | _updateBounds (void) |
Internal method for updating the bounds of the particle system. | |
virtual void | _updateRenderQueue (RenderQueue *queue, Camera *camera, const Camera *lodCamera) |
Overridden from MovableObject. | |
ParticleAffector * | addAffector (const String &affectorType) |
Adds an affector to this particle system. | |
ParticleEmitter * | addEmitter (const String &emitterType) |
Adds an emitter to this particle system. | |
void | addQueryFlags (uint32 flags) |
As setQueryFlags, except the flags passed as parameters are appended to the existing flags on this object. | |
void | addVisibilityFlags (uint32 flags) |
As setVisibilityFlags, except the flags passed as parameters are appended to the existing flags on this object. | |
void | clear () |
Empties this set of all particles. | |
virtual void | copyParametersTo (StringInterface *dest) const |
Method for copying this object's parameters to another object. | |
virtual AnimableValuePtr | createAnimableValue (const String &valueName) |
Create a reference-counted AnimableValuePtr for the named value. | |
Particle * | createEmitterParticle (const String &emitterName) |
Manually add an emitter particle to the system. | |
Particle * | createParticle (void) |
Manually add a particle to the system. | |
void | detachFromParent (void) |
Detaches an object from a parent SceneNode if attached. | |
void | fastForward (Real time, Real interval=0.1) |
Fast-forwards this system by the required number of seconds. | |
ParticleAffector * | getAffector (unsigned short index) const |
Retrieves an affector by it's index (zero-based). | |
const StringVector & | getAnimableValueNames (void) const |
Gets a list of animable value names for this object. | |
RealAsUint | getCachedDistanceToCamera (void) const |
Returns the distance to camera as calculated in @cullFrustum. | |
Real | getCachedDistanceToCameraAsReal (void) const |
Returns the distance to camera as calculated in @cullFrustum. | |
bool | getCastShadows (void) const |
Returns whether shadow casting is enabled for this object. | |
virtual bool | getCullIndividually (void) const |
Returns whether or not particles in this are tested individually for culling. | |
unsigned char | getCurrentMeshLod (void) const |
virtual Real | getDefaultHeight (void) const |
See setDefaultDimensions - this gets 1 component individually. | |
virtual Real | getDefaultWidth (void) const |
See setDefaultDimensions - this gets 1 component individually. | |
size_t | getEmittedEmitterQuota (void) const |
Returns the maximum number of emitted emitters this system is allowed to have active at once. | |
ParticleEmitter * | getEmitter (unsigned short index) const |
Retrieves an emitter by it's index (zero-based). | |
bool | getEmitting () const |
Returns true if the particle system emitting flag is turned on. | |
IdType | getId () const |
Get the unique id of this object. | |
Real | getIterationInterval (void) const |
Gets a 'iteration interval' on this particle system. | |
bool | getKeepParticlesInLocalSpace (void) const |
Gets whether particles (and any affector effects) remain relative to the node the particle system is attached to. | |
uint32 | getLightMask () const |
Get a bitwise mask which will filter the lights affecting this object. | |
Listener * | getListener (void) const |
Gets the current listener for this object. | |
Aabb | getLocalAabb (void) const |
Retrieves the local axis-aligned bounding box for this object. | |
float | getLocalRadius (void) const |
See getLocalAabb and getWorldRadius. | |
virtual const String & | getMaterialName (void) const |
Sets the name of the material to be used for this billboard set. | |
const String & | getMovableType (void) const |
Overridden from MovableObject. | |
const String & | getName (void) const |
Returns the name of this object. | |
Real | getNonVisibleUpdateTimeout (void) const |
Gets when the particle system should stop updating after it hasn't been visible for a while. | |
unsigned short | getNumAffectors (void) const |
Returns the number of affectors for this particle system. | |
unsigned short | getNumEmitters (void) const |
Returns the number of emitters for this particle system. | |
size_t | getNumParticles (void) const |
Gets the number of individual particles in the system right now. | |
const String & | getOrigin (void) const |
Get the origin of this particle system, e.g. | |
ParamDictionary * | getParamDictionary (void) |
Retrieves the parameter dictionary for this class. | |
const ParamDictionary * | getParamDictionary (void) const |
virtual String | getParameter (const String &name) const |
Generic parameter retrieval method. | |
const ParameterList & | getParameters (void) const |
Retrieves a list of parameters valid for this object. | |
Node * | getParentNode (void) const |
Returns the node to which this object is attached. | |
SceneNode * | getParentSceneNode (void) const |
Particle * | getParticle (size_t index) |
Retrieve a particle from the system for manual tweaking. | |
size_t | getParticleQuota (void) const |
Returns the maximum number of particles this system is allowed to have active at once. | |
uint32 | getQueryFlags (void) const |
Returns the query flags relevant for this object. | |
ParticleSystemRenderer * | getRenderer (void) const |
Gets the ParticleRenderer to be used to render this particle system. | |
const String & | getRendererName (void) const |
Gets the name of the ParticleRenderer to be used to render this particle system. | |
Real | getRenderingDistance (void) const |
Gets the distance at which batches are no longer rendered. | |
Real | getRenderingMinPixelSize () const |
Returns the minimum pixel size an object needs to be in both screen axes in order to be rendered. | |
uint8 | getRenderQueueGroup (void) const |
Gets the queue group for this entity, see setRenderQueueGroup for full details. | |
virtual const String & | getResourceGroupName (void) const |
Return the resource group to be used to load dependent resources. | |
Real | getShadowRenderingDistance (void) const |
Gets the distance at which batches are no longer casting shadows. | |
SkeletonInstance * | getSkeletonInstance (void) const |
bool | getSortingEnabled (void) const |
Gets whether particles are sorted relative to the camera. | |
Real | getSpeedFactor (void) const |
Gets the 'speed factor' on this particle system. | |
UserObjectBindings & | getUserObjectBindings () |
Return an instance of user objects binding associated with this class. | |
const UserObjectBindings & | getUserObjectBindings () const |
Return an instance of user objects binding associated with this class. | |
uint32 | getVisibilityFlags (void) const |
Returns the visibility flags relevant for this object. | |
bool | getVisible (void) const |
Gets this object whether to be visible or not, if it has a renderable component. | |
Aabb | getWorldAabb () const |
Gets the axis aligned box in world space. | |
Aabb | getWorldAabbUpdated () |
Gets the axis aligned box in world space. | |
float | getWorldRadius () const |
Gets the bounding Radius scaled by max( scale.x, scale.y, scale.z ). | |
float | getWorldRadiusUpdated () |
Gets the bounding Radius scaled by max( scale.x, scale.y, scale.z ). | |
virtual void | instanceBatchCullFrustumThreaded (const Frustum *frustum, const Camera *lodCamera, uint32 combinedVisibilityFlags) |
@See InstancingTheadedCullingMethod, | |
bool | isAttached (void) const |
Returns true if this object is attached to a Node. | |
bool | isStatic () const |
Checks whether this MovableObject is static. @See setStatic. | |
bool | isVisible (void) const |
Returns whether or not this object is supposed to be visible or not. | |
void | operator delete (void *ptr) |
void | operator delete (void *ptr, const char *, int, const char *) |
void | operator delete (void *ptr, void *) |
void | operator delete[] (void *ptr) |
void | operator delete[] (void *ptr, const char *, int, const char *) |
void * | operator new (size_t sz) |
void * | operator new (size_t sz, const char *file, int line, const char *func) |
operator new, with debug line info | |
void * | operator new (size_t sz, void *ptr) |
placement operator new | |
void * | operator new[] (size_t sz) |
void * | operator new[] (size_t sz, const char *file, int line, const char *func) |
array operator new, with debug line info | |
bool | operator() (const IdObject &left, const IdObject &right) |
bool | operator() (const IdObject *left, const IdObject *right) |
ParticleSystem & | operator= (const ParticleSystem &rhs) |
Assignment operator for copying. | |
const LightList & | queryLights (void) const |
Gets a list of lights, ordered relative to how close they are to this movable object. | |
void | removeAffector (unsigned short index) |
Removes an affector from the system. | |
void | removeAllAffectors (void) |
Removes all the affectors from this system. | |
void | removeAllEmitters (void) |
Removes all the emitters from this system. | |
void | removeEmitter (ParticleEmitter *emitter) |
Removes an emitter from the system. | |
void | removeEmitter (unsigned short index) |
Removes an emitter from the system. | |
void | removeQueryFlags (uint32 flags) |
As setQueryFlags, except the flags passed as parameters are removed from the existing flags on this object. | |
void | removeVisibilityFlags (uint32 flags) |
As setVisibilityFlags, except the flags passed as parameters are removed from the existing flags on this object. | |
void | setBoundsAutoUpdated (bool autoUpdate, Real stopIn=0.0f) |
Sets whether the bounds will be automatically updated for the life of the particle system. | |
void | setCastShadows (bool enabled) |
Sets whether or not this object will cast shadows. | |
virtual void | setCullIndividually (bool cullIndividual) |
Sets whether culling tests particles in this individually as well as in a group. | |
virtual void | setDefaultDimensions (Real width, Real height) |
Sets the default dimensions of the particles in this set. | |
virtual void | setDefaultHeight (Real height) |
See setDefaultDimensions - this sets 1 component individually. | |
virtual void | setDefaultWidth (Real width) |
See setDefaultDimensions - this sets 1 component individually. | |
void | setEmittedEmitterQuota (size_t quota) |
Sets the maximum number of emitted emitters this system is allowed to have active at once. | |
void | setEmitting (bool v) |
This is used to turn on or off particle emission for this system. | |
void | setIterationInterval (Real iterationInterval) |
Sets a 'iteration interval' on this particle system. | |
void | setKeepParticlesInLocalSpace (bool keepLocal) |
Sets whether particles (and any affector effects) remain relative to the node the particle system is attached to. | |
void | setLightMask (uint32 lightMask) |
Set a bitwise mask which will filter the lights affecting this object. | |
void | setListener (Listener *listener) |
Sets a listener for this object. | |
void | setLocalAabb (const Aabb box) |
Sets the local axis-aligned bounding box for this object. | |
virtual void | setMaterialName (const String &name, const String &groupName=ResourceGroupManager::AUTODETECT_RESOURCE_GROUP_NAME) |
Sets the name of the material to be used for this billboard set. | |
void | setName (const String &name) |
Sets a custom name for this node. | |
void | setNonVisibleUpdateTimeout (Real timeout) |
Sets when the particle system should stop updating after it hasn't been visible for a while. | |
virtual bool | setParameter (const String &name, const String &value) |
Generic parameter setting method. | |
virtual void | setParameterList (const NameValuePairList ¶mList) |
Generic multiple parameter setting method. | |
void | setParticleQuota (size_t quota) |
Sets the maximum number of particles this system is allowed to have active at once. | |
void | setQueryFlags (uint32 flags) |
Sets the query flags for this object. | |
void | setRenderer (const String &typeName) |
Sets the ParticleRenderer to be used to render this particle system. | |
void | setRenderingDistance (Real dist) |
Sets the distance at which the object is no longer rendered. | |
void | setRenderingMinPixelSize (Real pixelSize) |
Sets the minimum pixel size an object needs to be in both screen axes in order to be rendered. | |
void | setRenderQueueGroup (uint8 queueID) |
Sets the render queue group this entity will be rendered through. | |
void | setRenderQueueSubGroup (uint8 subGroup) |
void | setShadowRenderingDistance (Real dist) |
Sets the distance at which the object is no longer casting shadows. | |
void | setSortingEnabled (bool enabled) |
Set whether or not particles are sorted according to the camera. | |
void | setSpeedFactor (Real speedFactor) |
Sets a 'speed factor' on this particle system, which means it scales the elapsed real time which has passed by this factor before passing it to the emitters, affectors, and the particle life calculation. | |
bool | setStatic (bool bStatic) |
Turns this Node into static or dynamic. | |
void | setVisibilityFlags (uint32 flags) |
Sets the visibility flags for this object. | |
void | setVisible (bool visible) |
Tells this object whether to be visible or not, if it has a renderable component. | |
Public Attributes | |
size_t | mGlobalIndex |
Index in the vector holding this MO reference (could be our parent node, or a global array tracking all movable objecst to avoid memory leaks). | |
size_t | mParentIndex |
Index in the vector holding this MO reference (could be our parent node, or a global array tracking all movable objecst to avoid memory leaks). | |
RenderableArray | mRenderables |
Static Public Attributes | |
static const FastArray< Real > | c_DefaultLodMesh |
Class defining particle system based special effects.
@See SceneManager::cullFrustum
frustum | Frustum to clip against |
sceneVisibilityFlags | Combined scene's visibility flags (i.e. viewport | scene). Set LAYER_SHADOW_CASTER bit if you want to exclude non-shadow casters. |
outCulledObjects | Out. List of objects that are (fully or partially) inside the frustum and should be rendered |
lodCamera | Camera in which lod levels calculations are based (i.e. during shadow pass renders) Note however, we only use this camera to calulate if should be visible according to mUpperDistance |
Ogre::ParticleSystem::ParticleSystem | ( | IdType | id, |
ObjectMemoryManager * | objectMemoryManager, | ||
SceneManager * | manager, | ||
const String & | resourceGroupName | ||
) |
Creates a particle system with no emitters or affectors.
|
virtual |
ParticleIterator Ogre::ParticleSystem::_getIterator | ( | void | ) |
Returns an iterator for stepping through all particles in this system.
|
inlineinherited |
Returns a pointer to the current list of lights for this object.
|
inlineinherited |
Get the manager of this object, if any (internal use only)
|
inlineinherited |
Returns a direct access to the ObjectData state.
Returns the full transformation of the parent sceneNode or the attachingPoint node.
|
inlineinherited |
Notify the object of it's manager (internal use only)
Notify this particle system of it's origin.
@See Node::_callMemoryChangeListeners
Reimplemented in Ogre::v1::InstancedEntity, and Ogre::Item.
Internal callback used by Particles to notify their parent that they have been resized.
Internal callback used by Particles to notify their parent that they have been rotated.
Called by SceneManager when it is telling we're a static MovableObject being dirty Don't call this directly.
Reimplemented in Ogre::v1::InstancedEntity.
Notifies the movable object that hardware resources were lost.
Reimplemented in Ogre::v1::BillboardSet, and Ogre::v1::ManualObject.
Notifies the movable object that hardware resources should be restored.
Updates the particles in the system based on time elapsed.
timeElapsed | The amount of time, in seconds, since the last frame. |
Internal method for updating the bounds of the particle system.
ParticleAffector * Ogre::ParticleSystem::addAffector | ( | const String & | affectorType | ) |
Adds an affector to this particle system.
affectorType | String identifying the affector type to create. Affector types are defined by registering new factories with the manager - see ParticleAffectorFactory for more details. Affector types can be extended by OGRE, plugin authors or application developers. |
ParticleEmitter * Ogre::ParticleSystem::addEmitter | ( | const String & | emitterType | ) |
Adds an emitter to this particle system.
emitterType | String identifying the emitter type to create. Emitter types are defined by registering new factories with the manager - see ParticleEmitterFactory for more details. Emitter types can be extended by OGRE, plugin authors or application developers. |
As setQueryFlags, except the flags passed as parameters are appended to the existing flags on this object.
As setVisibilityFlags, except the flags passed as parameters are appended to the existing flags on this object.
|
staticinherited |
@See SceneManager::buildLightList
globalLightList | List of lights already culled against all possible frustums and reorganized contiguously for SoA |
|
staticinherited |
Cleans up the static 'msDictionary' required to reset Ogre, otherwise the containers are left with invalid pointers, which will lead to a crash as soon as one of the ResourceManager implementers (e.g.
MaterialManager) initializes.
void Ogre::ParticleSystem::clear | ( | ) |
Empties this set of all particles.
|
inlinevirtualinherited |
Method for copying this object's parameters to another object.
dest | Pointer to object to have it's parameters set the same as this object. |
|
inlinevirtualinherited |
Create a reference-counted AnimableValuePtr for the named value.
Reimplemented in Ogre::Light.
References Ogre::Exception::ERR_ITEM_NOT_FOUND, and OGRE_EXCEPT.
Manually add an emitter particle to the system.
emitterName | The name of a particle emitter that must be emitted. |
Manually add a particle to the system.
|
staticinherited |
|
staticinherited |
@See SceneManager::cullLights &
outGlobalLightList | Output, a list of lights, contiguously placed |
frustums | An array of all frustums we need to check against |
cubemapFrustums | An array of all frustums that are used at least once as cubemaps (@See SceneManager::createCamera) |
Detaches an object from a parent SceneNode if attached.
Fast-forwards this system by the required number of seconds.
time | The number of seconds to fast-forward by. |
interval | The sampling interval used to generate particles, apply affectors etc. The lower this is the more realistic the fast-forward, but it takes more iterations to do it. |
ParticleAffector * Ogre::ParticleSystem::getAffector | ( | unsigned short | index | ) | const |
Retrieves an affector by it's index (zero-based).
index | Zero-based index of the affector to retrieve. |
|
inlineinherited |
Gets a list of animable value names for this object.
References Ogre::Exception::ERR_ITEM_NOT_FOUND, and OGRE_EXCEPT.
|
inlineinherited |
Returns the distance to camera as calculated in @cullFrustum.
Returns the distance to camera as calculated in @cullFrustum.
Returns whether shadow casting is enabled for this object.
Returns whether or not particles in this are tested individually for culling.
See setDefaultDimensions - this gets 1 component individually.
Get the default iteration interval for all ParticleSystem instances.
Get the default nonvisible timeout for all ParticleSystem instances.
Get the default query flags for all future MovableObject instances.
Get the default visibility flags for all future MovableObject instances.
See setDefaultDimensions - this gets 1 component individually.
Returns the maximum number of emitted emitters this system is allowed to have active at once.
ParticleEmitter * Ogre::ParticleSystem::getEmitter | ( | unsigned short | index | ) | const |
Retrieves an emitter by it's index (zero-based).
index | Zero-based index of the emitter to retrieve. |
bool Ogre::ParticleSystem::getEmitting | ( | ) | const |
Returns true if the particle system emitting flag is turned on.
|
inlineinherited |
Get the unique id of this object.
Gets a 'iteration interval' on this particle system.
Gets whether particles (and any affector effects) remain relative to the node the particle system is attached to.
|
inlineinherited |
Get a bitwise mask which will filter the lights affecting this object.
Gets the current listener for this object.
Retrieves the local axis-aligned bounding box for this object.
See getLocalAabb and getWorldRadius.
Sets the name of the material to be used for this billboard set.
Overridden from MovableObject.
Implements Ogre::MovableObject.
Returns the name of this object.
Gets when the particle system should stop updating after it hasn't been visible for a while.
Returns the number of affectors for this particle system.
Returns the number of emitters for this particle system.
Gets the number of individual particles in the system right now.
Get the origin of this particle system, e.g.
a script file name.
|
inlineinherited |
Retrieves the parameter dictionary for this class.
|
inlineinherited |
|
inlinevirtualinherited |
Generic parameter retrieval method.
name | The name of the parameter to get |
|
inherited |
Retrieves a list of parameters valid for this object.
Returns the node to which this object is attached.
Retrieve a particle from the system for manual tweaking.
Returns the maximum number of particles this system is allowed to have active at once.
Returns the query flags relevant for this object.
ParticleSystemRenderer * Ogre::ParticleSystem::getRenderer | ( | void | ) | const |
Gets the ParticleRenderer to be used to render this particle system.
Gets the name of the ParticleRenderer to be used to render this particle system.
Gets the distance at which batches are no longer rendered.
|
inlineinherited |
Returns the minimum pixel size an object needs to be in both screen axes in order to be rendered.
Gets the queue group for this entity, see setRenderQueueGroup for full details.
Return the resource group to be used to load dependent resources.
Gets the distance at which batches are no longer casting shadows.
|
inlineinherited |
Gets whether particles are sorted relative to the camera.
Gets the 'speed factor' on this particle system.
|
inlineinherited |
Return an instance of user objects binding associated with this class.
You can use it to associate one or more custom objects with this class instance.
|
inlineinherited |
Return an instance of user objects binding associated with this class.
You can use it to associate one or more custom objects with this class instance.
Returns the visibility flags relevant for this object.
Reserved visibility flags are not returned.
Gets this object whether to be visible or not, if it has a renderable component.
|
inherited |
Gets the axis aligned box in world space.
|
inherited |
Gets the axis aligned box in world space.
|
inherited |
Gets the bounding Radius scaled by max( scale.x, scale.y, scale.z ).
|
inherited |
Gets the bounding Radius scaled by max( scale.x, scale.y, scale.z ).
|
inlinevirtualinherited |
@See InstancingTheadedCullingMethod,
Returns true if this object is attached to a Node.
|
inherited |
Checks whether this MovableObject is static. @See setStatic.
Returns whether or not this object is supposed to be visible or not.
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
operator new, with debug line info
placement operator new
|
inlineinherited |
|
inlineinherited |
array operator new, with debug line info
ParticleSystem & Ogre::ParticleSystem::operator= | ( | const ParticleSystem & | rhs | ) |
Assignment operator for copying.
Gets a list of lights, ordered relative to how close they are to this movable object.
Removes an affector from the system.
index | Zero-based index of the affector to retrieve. |
void Ogre::ParticleSystem::removeEmitter | ( | ParticleEmitter * | emitter | ) |
Removes an emitter from the system.
emitter | Pointer to a particle emitter. |
Removes an emitter from the system.
index | Zero-based index of the emitter to retrieve. |
As setQueryFlags, except the flags passed as parameters are removed from the existing flags on this object.
As setVisibilityFlags, except the flags passed as parameters are removed from the existing flags on this object.
Sets whether the bounds will be automatically updated for the life of the particle system.
autoUpdate | If true (the default), the particle system will update it's bounds every frame. If false, the bounds update will cease after the 'stopIn' number of seconds have passed. |
stopIn | Only applicable if the first parameter is true, this is the number of seconds after which the automatic update will cease. |
Sets whether or not this object will cast shadows.
Sets whether culling tests particles in this individually as well as in a group.
cullIndividual | If true, each particle is tested before being sent to the pipeline as well as the whole set having to pass the coarse group bounding test. |
Sets the default dimensions of the particles in this set.
width | The new default width for the particles in this set. Must be non-negative! |
height | The new default height for the particles in this set. Must be non-negative! |
See setDefaultDimensions - this sets 1 component individually.
|
inlinestatic |
Set the default iteration interval for all ParticleSystem instances.
Set the default nonvisible timeout for all ParticleSystem instances.
Set the default query flags for all future MovableObject instances.
Set the default visibility flags for all future MovableObject instances.
See setDefaultDimensions - this sets 1 component individually.
Sets the maximum number of emitted emitters this system is allowed to have active at once.
quota | The maximum number of emitted emitters this system is allowed to have. |
This is used to turn on or off particle emission for this system.
Note that this does not detach the particle system from the scene node, it will still use some CPU.
Sets a 'iteration interval' on this particle system.
iterationInterval | The iteration interval, default to zero. |
Sets whether particles (and any affector effects) remain relative to the node the particle system is attached to.
Set a bitwise mask which will filter the lights affecting this object.
Sets a listener for this object.
Sets the local axis-aligned bounding box for this object.
|
virtual |
Sets the name of the material to be used for this billboard set.
name | The new name of the material to use for this set. |
Sets a custom name for this node.
Doesn't have to be unique
Sets when the particle system should stop updating after it hasn't been visible for a while.
timeout | The time after which the particle system will be disabled if it is no longer visible. 0 to disable the timeout and always update. |
|
virtualinherited |
Generic parameter setting method.
name | The name of the parameter to set |
value | String value. Must be in the right format for the type specified in the parameter definition. See the StringConverter class for more information. |
|
virtualinherited |
Generic multiple parameter setting method.
paramList | Name/value pair list |
Sets the maximum number of particles this system is allowed to have active at once.
quota | The maximum number of particles this system is allowed to have. |
Sets the query flags for this object.
Sets the ParticleRenderer to be used to render this particle system.
typeName | String identifying the type of renderer to use; a new instance of this type will be created; a factory must have been registered with ParticleSystemManager. |
Sets the distance at which the object is no longer rendered.
dist | Distance beyond which the object will not be rendered (the default is FLT_MAX, which means objects are always rendered). Values equal or below zero will be ignored, and cause an assertion in debug mode. |
Sets the minimum pixel size an object needs to be in both screen axes in order to be rendered.
pixelSize | Number of minimum pixels (the default is 0, which means objects are always rendered). |
Sets the render queue group this entity will be rendered through.
queueID | Enumerated value of the queue group to use. See the enum RenderQueueGroupID for what kind of values can be used here. |
Reimplemented from Ogre::MovableObject.
Sets the distance at which the object is no longer casting shadows.
dist | Distance beyond which the object will not cast shadows (the default is FLT_MAX, which means objects are always casting shadows). Values equal or below zero will be ignored, and cause an assertion in debug mode. |
Set whether or not particles are sorted according to the camera.
Sets a 'speed factor' on this particle system, which means it scales the elapsed real time which has passed by this factor before passing it to the emitters, affectors, and the particle life calculation.
Turns this Node into static or dynamic.
Sets the visibility flags for this object.
Tells this object whether to be visible or not, if it has a renderable component.
|
staticinherited |
@See SceneManager::updateAllBounds
|
inherited |
Index in the vector holding this MO reference (could be our parent node, or a global array tracking all movable objecst to avoid memory leaks).
Used for O(1) removals.
|
inherited |
Index in the vector holding this MO reference (could be our parent node, or a global array tracking all movable objecst to avoid memory leaks).
Used for O(1) removals.
|
inherited |