Ogre::BillboardParticleRenderer Class Reference
Core » Effects

Specialisation of ParticleSystemRenderer to render particles using a BillboardSet. More...

`#include <OgreBillboardParticleRenderer.h>`

Inheritance diagram for Ogre::BillboardParticleRenderer:
[legend]

## Classes

class | CmdAccurateFacing
| Command object for accurate facing(see ParamCommand). More...
class | CmdBillboardOrigin
| Command object for billboard origin (see ParamCommand). More...
class | CmdBillboardRotationType
| Command object for billboard rotation type (see ParamCommand). More...
class | CmdBillboardType
| Command object for billboard type (see ParamCommand). More...
class | CmdCommonDirection
| Command object for common direction (see ParamCommand). More...
class | CmdCommonUpVector
| Command object for common up-vector (see ParamCommand). More...
class | CmdPointRendering
| Command object for point rendering (see ParamCommand). More...

## Public Member Functions

| BillboardParticleRenderer ()
| ~BillboardParticleRenderer ()
virtual ParticleVisualData * | _createVisualData (void)
| Create a new ParticleVisualData instance for attachment to a particle. More...
virtual void | _destroyVisualData (ParticleVisualData *vis)
| Destroy a ParticleVisualData instance. More...
SortMode | _getSortMode (void) const
| Gets the desired particles sort mode of this renderer. More...
void | _notifyAttached (Node *parent, bool isTagPoint=false)
| Delegated to by ParticleSystem::_notifyAttached. More...
void | _notifyCurrentCamera (Camera *cam)
| Delegated to by ParticleSystem::_notifyCurrentCamera. More...
void | _notifyDefaultDimensions (Real width, Real height)
| Tells the renderer that the particle default size has changed. More...
virtual void | _notifyParticleCleared (list< Particle *>::type &currentParticles)
| Optional callback notified when particles cleared. More...
virtual void | _notifyParticleEmitted (Particle *particle)
| Optional callback notified when particle emitted. More...
virtual void | _notifyParticleExpired (Particle *particle)
| Optional callback notified when particle expired. More...
virtual void | _notifyParticleMoved (list< Particle *>::type &currentParticles)
| Optional callback notified when particles moved. More...
void | _notifyParticleQuota (size_t quota)
| Tells the renderer that the particle quota has changed. More...
void | _notifyParticleResized (void)
| Optional callback notified when particles are resized individually. More...
void | _notifyParticleRotated (void)
| Optional callback notified when particles are rotated. More...
void | _setMaterial (MaterialPtr &mat)
| Sets the material this renderer must use; called by ParticleSystem. More...
void | _updateRenderQueue (RenderQueue *queue, list< Particle *>::type &currentParticles, bool cullIndividually)
| Delegated to by ParticleSystem::_updateRenderQueue. More...
virtual void | copyParametersTo (StringInterface *dest) const
| Method for copying this object's parameters to another object. More...
BillboardOrigin | getBillboardOrigin (void) const
| Gets the point which acts as the origin point for all billboards in this set. More...
BillboardRotationType | getBillboardRotationType (void) const
| Gets billboard rotation type. More...
BillboardSet * | getBillboardSet (void) const
| Access BillboardSet in use. More...
BillboardType | getBillboardType (void) const
| Returns the billboard type in use. More...
const Vector3 & | getCommonDirection (void) const
| Gets the common direction for all billboards (BBT_ORIENTED_COMMON) More...
const Vector3 & | getCommonUpVector (void) const
| Gets the common up-vector for all billboards (BBT_PERPENDICULAR_SELF) More...
ParamDictionary * | getParamDictionary (void)
| Retrieves the parameter dictionary for this class. More...
const ParamDictionary * | getParamDictionary (void) const
virtual String | getParameter (const String &name) const
| Generic parameter retrieval method. More...
const ParameterList & | getParameters (void) const
| Retrieves a list of parameters valid for this object. More...
const String & | getType (void) const
| Gets the type of this renderer - must be implemented by subclasses. More...
bool | getUseAccurateFacing (void) const
| Gets whether or not billboards use an 'accurate' facing model based on the vector from each billboard to the camera, rather than an optimised version using just the camera direction. More...
bool | isPointRenderingEnabled (void) const
| Returns whether point rendering is enabled. More...
void | operator delete (void *ptr)
void | operator delete (void *ptr, void *)
void | operator delete (void *ptr, const char *, int, const char *)
void | operator delete[] (void *ptr)
void | operator delete[] (void *ptr, const char *, int, const char *)
void * | operator new (size_t sz, const char *file, int line, const char *func)
| operator new, with debug line info More...
void * | operator new (size_t sz)
void * | operator new (size_t sz, void *ptr)
| placement operator new More...
void * | operator new[] (size_t sz, const char *file, int line, const char *func)
| array operator new, with debug line info More...
void * | operator new[] (size_t sz)
void | setBillboardOrigin (BillboardOrigin origin)
| Sets the point which acts as the origin point for all billboards in this set. More...
void | setBillboardRotationType (BillboardRotationType rotationType)
| Sets billboard rotation type. More...
void | setBillboardType (BillboardType bbt)
| Sets the type of billboard to render. More...
void | setCommonDirection (const Vector3 &vec)
| Use this to specify the common direction given to billboards of type BBT_ORIENTED_COMMON. More...
void | setCommonUpVector (const Vector3 &vec)
| Use this to specify the common up-vector given to billboards of type BBT_PERPENDICULAR_SELF. More...
void | setKeepParticlesInLocalSpace (bool keepLocal)
| Setting carried over from ParticleSystem. More...
virtual bool | setParameter (const String &name, const String &value)
| Generic parameter setting method. More...
virtual void | setParameterList (const NameValuePairList &paramList)
| Generic multiple parameter setting method. More...
void | setPointRenderingEnabled (bool enabled)
| Set whether or not the BillboardSet will use point rendering rather than manually generated quads. More...
void | setRenderQueueGroup (uint8 queueID)
| Sets which render queue group this renderer should target with it's output. More...
void | setRenderQueueGroupAndPriority (uint8 queueID, ushort priority)
| Sets the render queue group and group priority this entity will be rendered through. More...
void | setUseAccurateFacing (bool acc)
| Sets whether or not billboards should use an 'accurate' facing model based on the vector from each billboard to the camera, rather than an optimised version using just the camera direction. More...
void | visitRenderables (Renderable::Visitor *visitor, bool debugRenderables=false)
| Required method to allow the renderer to communicate the Renderables it will be using to render the system to a visitor. More...

## Static Public Member Functions

static void | cleanupDictionary ()
| 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. More...

## Protected Member Functions

bool | createParamDictionary (const String &className)
| Internal method for creating a parameter dictionary for the class, if it does not already exist. More...

## Protected Attributes

BillboardSet * | mBillboardSet
| The billboard set that's doing the rendering. More...

## Static Protected Attributes

static CmdAccurateFacing | msAccurateFacingCmd
static CmdBillboardOrigin | msBillboardOriginCmd
static CmdBillboardRotationType | msBillboardRotationTypeCmd
static CmdBillboardType | msBillboardTypeCmd
static CmdCommonDirection | msCommonDirectionCmd
static CmdCommonUpVector | msCommonUpVectorCmd
static CmdPointRendering | msPointRenderingCmd

## Detailed Description

Specialisation of ParticleSystemRenderer to render particles using a BillboardSet.

Remarks
  This renderer has a few more options than the standard particle system, which will be passed to it automatically when the particle system itself does not understand them.

Definition at line 52 of file OgreBillboardParticleRenderer.h.

## Constructor & Destructor Documentation

## BillboardParticleRenderer()

Ogre::BillboardParticleRenderer::BillboardParticleRenderer | ( |  | ) |

## ~BillboardParticleRenderer()

Ogre::BillboardParticleRenderer::~BillboardParticleRenderer | ( |  | ) |

## Member Function Documentation

## _createVisualData()

virtual ParticleVisualData* Ogre::ParticleSystemRenderer::_createVisualData | ( | void |  | ) |

virtual inherited

Create a new ParticleVisualData instance for attachment to a particle.

Remarks
  If this renderer needs additional data in each particle, then this should be held in an instance of a subclass of ParticleVisualData, and this method should be overridden to return a new instance of it. The default behaviour is to return null.

Definition at line 97 of file OgreParticleSystemRenderer.h.

## _destroyVisualData()

virtual void Ogre::ParticleSystemRenderer::_destroyVisualData | ( | ParticleVisualData * | vis | ) |

virtual inherited

Destroy a ParticleVisualData instance.

Remarks
  If this renderer needs additional data in each particle, then this should be held in an instance of a subclass of ParticleVisualData, and this method should be overridden to destroy an instance of it. The default behaviour is to do nothing.

Definition at line 105 of file OgreParticleSystemRenderer.h.

## _getSortMode()

SortMode Ogre::BillboardParticleRenderer::_getSortMode | ( | void |  | ) | const

virtual

Gets the desired particles sort mode of this renderer.

Implements Ogre::ParticleSystemRenderer.

## _notifyAttached()

void Ogre::BillboardParticleRenderer::_notifyAttached | ( | Node * | parent,
|  | bool | isTagPoint = `false`
| ) |  |

virtual

Delegated to by ParticleSystem::_notifyAttached.

Implements Ogre::ParticleSystemRenderer.

## _notifyCurrentCamera()

void Ogre::BillboardParticleRenderer::_notifyCurrentCamera | ( | Camera * | cam | ) |

virtual

Delegated to by ParticleSystem::_notifyCurrentCamera.

Implements Ogre::ParticleSystemRenderer.

## _notifyDefaultDimensions()

void Ogre::BillboardParticleRenderer::_notifyDefaultDimensions | ( | Real | width,
|  | Real | height
| ) |  |

virtual

Tells the renderer that the particle default size has changed.

Implements Ogre::ParticleSystemRenderer.

## _notifyParticleCleared()

virtual void Ogre::ParticleSystemRenderer::_notifyParticleCleared | ( | list< Particle *>::type & | currentParticles | ) |

virtual inherited

Optional callback notified when particles cleared.

Definition at line 89 of file OgreParticleSystemRenderer.h.

## _notifyParticleEmitted()

virtual void Ogre::ParticleSystemRenderer::_notifyParticleEmitted | ( | Particle * | particle | ) |

virtual inherited

Optional callback notified when particle emitted.

Definition at line 83 of file OgreParticleSystemRenderer.h.

## _notifyParticleExpired()

virtual void Ogre::ParticleSystemRenderer::_notifyParticleExpired | ( | Particle * | particle | ) |

virtual inherited

Optional callback notified when particle expired.

Definition at line 85 of file OgreParticleSystemRenderer.h.

## _notifyParticleMoved()

virtual void Ogre::ParticleSystemRenderer::_notifyParticleMoved | ( | list< Particle *>::type & | currentParticles | ) |

virtual inherited

Optional callback notified when particles moved.

Definition at line 87 of file OgreParticleSystemRenderer.h.

## _notifyParticleQuota()

void Ogre::BillboardParticleRenderer::_notifyParticleQuota | ( | size_t | quota | ) |

virtual

Tells the renderer that the particle quota has changed.

Implements Ogre::ParticleSystemRenderer.

## _notifyParticleResized()

void Ogre::BillboardParticleRenderer::_notifyParticleResized | ( | void |  | ) |

virtual

Optional callback notified when particles are resized individually.

Reimplemented from Ogre::ParticleSystemRenderer.

## _notifyParticleRotated()

void Ogre::BillboardParticleRenderer::_notifyParticleRotated | ( | void |  | ) |

virtual

Optional callback notified when particles are rotated.

Reimplemented from Ogre::ParticleSystemRenderer.

## _setMaterial()

void Ogre::BillboardParticleRenderer::_setMaterial | ( | MaterialPtr & | mat | ) |

virtual

Sets the material this renderer must use; called by ParticleSystem.

Implements Ogre::ParticleSystemRenderer.

## _updateRenderQueue()

void Ogre::BillboardParticleRenderer::_updateRenderQueue | ( | RenderQueue * | queue,
|  | list< Particle *>::type & | currentParticles,
|  | bool | cullIndividually
| ) |  |

virtual

Delegated to by ParticleSystem::_updateRenderQueue.

Remarks
  The subclass must update the render queue using whichever Renderable instance(s) it wishes.

Implements Ogre::ParticleSystemRenderer.

## cleanupDictionary()

static void Ogre::StringInterface::cleanupDictionary | ( |  | ) |

static inherited

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.

## copyParametersTo()

virtual void Ogre::StringInterface::copyParametersTo | ( | StringInterface * | dest | ) | const

virtual inherited

Method for copying this object's parameters to another object.

Remarks
  This method takes the values of all the object's parameters and tries to set the same values on the destination object. This provides a completely type independent way to copy parameters to other objects. Note that because of the String manipulation involved, this should not be regarded as an efficient process and should be saved for times outside of the rendering loop.

  Any unrecognised parameters will be ignored as with setParameter method.

Parameters

  dest | Pointer to object to have it's parameters set the same as this object.

Definition at line 303 of file OgreStringInterface.h.

References Ogre::ParamDictionary::mParamDefs, and Ogre::StringInterface::setParameter().

## createParamDictionary()

bool Ogre::StringInterface::createParamDictionary | ( | const String & | className | ) |

protected inherited

Internal method for creating a parameter dictionary for the class, if it does not already exist.

Remarks
  This method will check to see if a parameter dictionary exist for this class yet, and if not will create one. NB you must supply the name of the class (RTTI is not used or performance).

Parameters

  className | the name of the class using the dictionary

Returns
  true if a new dictionary was created, false if it was already there

Definition at line 186 of file OgreStringInterface.h.

References OGRE_LOCK_MUTEX.

## getBillboardOrigin()

BillboardOrigin Ogre::BillboardParticleRenderer::getBillboardOrigin | ( | void |  | ) | const

Gets the point which acts as the origin point for all billboards in this set.

Returns
  A member of the BillboardOrigin enum specifying the origin for all the billboards in this set.

Definition at line 148 of file OgreBillboardParticleRenderer.h.

References Ogre::BillboardSet::getBillboardOrigin().

## getBillboardRotationType()

BillboardRotationType Ogre::BillboardParticleRenderer::getBillboardRotationType | ( | void |  | ) | const

Gets billboard rotation type.

Returns
  A member of the BillboardRotationType enum specifying the rotation type for all the billboards in this set.

## getBillboardSet()

BillboardSet* Ogre::BillboardParticleRenderer::getBillboardSet | ( | void |  | ) | const

Access BillboardSet in use.

Definition at line 233 of file OgreBillboardParticleRenderer.h.

## getBillboardType()

BillboardType Ogre::BillboardParticleRenderer::getBillboardType | ( | void |  | ) | const

Returns the billboard type in use.

## getCommonDirection()

const Vector3& Ogre::BillboardParticleRenderer::getCommonDirection | ( | void |  | ) | const

Gets the common direction for all billboards (BBT_ORIENTED_COMMON)

## getCommonUpVector()

const Vector3& Ogre::BillboardParticleRenderer::getCommonUpVector | ( | void |  | ) | const

Gets the common up-vector for all billboards (BBT_PERPENDICULAR_SELF)

## getParamDictionary() [1/2]

ParamDictionary* Ogre::StringInterface::getParamDictionary | ( | void |  | ) |

inherited

Retrieves the parameter dictionary for this class.

Remarks
  Only valid to call this after createParamDictionary.

Returns
  Pointer to ParamDictionary shared by all instances of this class which you can add parameters to, retrieve parameters etc.

Definition at line 219 of file OgreStringInterface.h.

## getParamDictionary() [2/2]

const ParamDictionary* Ogre::StringInterface::getParamDictionary | ( | void |  | ) | const

inherited

Definition at line 224 of file OgreStringInterface.h.

## getParameter()

virtual String Ogre::StringInterface::getParameter | ( | const String & | name | ) | const

virtual inherited

Generic parameter retrieval method.

Remarks
  Call this method with the name of a parameter to retrieve a string-format value of the parameter in question. If in doubt, check the parameter definition in the list returned from getParameters for the type of this parameter. If you like you can use StringConverter to convert this string back into a native type.

Parameters

  name | The name of the parameter to get

Returns
  String value of parameter, blank if not found

Definition at line 272 of file OgreStringInterface.h.

References Ogre::ParamCommand::doGet(), and Ogre::ParamDictionary::getParamCommand().

## getParameters()

const ParameterList& Ogre::StringInterface::getParameters | ( | void |  | ) | const

inherited

Retrieves a list of parameters valid for this object.

Returns
  A reference to a static list of ParameterDef objects.

## getType()

const String& Ogre::BillboardParticleRenderer::getType | ( | void |  | ) | const

virtual

Gets the type of this renderer - must be implemented by subclasses.

Implements Ogre::ParticleSystemRenderer.

## getUseAccurateFacing()

bool Ogre::BillboardParticleRenderer::getUseAccurateFacing | ( | void |  | ) | const

Gets whether or not billboards use an 'accurate' facing model based on the vector from each billboard to the camera, rather than an optimised version using just the camera direction.

## isPointRenderingEnabled()

bool Ogre::BillboardParticleRenderer::isPointRenderingEnabled | ( | void |  | ) | const

Returns whether point rendering is enabled.

## operator delete() [1/3]

template<class Alloc >

void Ogre::AllocatedObject< Alloc >::operator delete | ( | void * | ptr | ) |

inherited

Definition at line 96 of file OgreMemoryAllocatedObject.h.

## operator delete() [2/3]

template<class Alloc >

void Ogre::AllocatedObject< Alloc >::operator delete | ( | void * | ptr,
|  | void * |
| ) |  |

inherited

Definition at line 102 of file OgreMemoryAllocatedObject.h.

## operator delete() [3/3]

template<class Alloc >

void Ogre::AllocatedObject< Alloc >::operator delete | ( | void * | ptr,
|  | const char * | ,
|  | int | ,
|  | const char * |
| ) |  |

inherited

Definition at line 108 of file OgreMemoryAllocatedObject.h.

## operator delete[]() [1/2]

template<class Alloc >

void Ogre::AllocatedObject< Alloc >::operator delete[] | ( | void * | ptr | ) |

inherited

Definition at line 113 of file OgreMemoryAllocatedObject.h.

## operator delete[]() [2/2]

template<class Alloc >

void Ogre::AllocatedObject< Alloc >::operator delete[] | ( | void * | ptr,
|  | const char * | ,
|  | int | ,
|  | const char * |
| ) |  |

inherited

Definition at line 119 of file OgreMemoryAllocatedObject.h.

## operator new() [1/3]

template<class Alloc >

void* Ogre::AllocatedObject< Alloc >::operator new | ( | size_t | sz,
|  | const char * | file,
|  | int | line,
|  | const char * | func
| ) |  |

inherited

operator new, with debug line info

Definition at line 68 of file OgreMemoryAllocatedObject.h.

## operator new() [2/3]

template<class Alloc >

void* Ogre::AllocatedObject< Alloc >::operator new | ( | size_t | sz | ) |

inherited

Definition at line 73 of file OgreMemoryAllocatedObject.h.

## operator new() [3/3]

template<class Alloc >

void* Ogre::AllocatedObject< Alloc >::operator new | ( | size_t | sz,
|  | void * | ptr
| ) |  |

inherited

placement operator new

Definition at line 79 of file OgreMemoryAllocatedObject.h.

## operator new[]() [1/2]

template<class Alloc >

void* Ogre::AllocatedObject< Alloc >::operator new[] | ( | size_t | sz,
|  | const char * | file,
|  | int | line,
|  | const char * | func
| ) |  |

inherited

array operator new, with debug line info

Definition at line 86 of file OgreMemoryAllocatedObject.h.

## operator new[]() [2/2]

template<class Alloc >

void* Ogre::AllocatedObject< Alloc >::operator new[] | ( | size_t | sz | ) |

inherited

Definition at line 91 of file OgreMemoryAllocatedObject.h.

## setBillboardOrigin()

void Ogre::BillboardParticleRenderer::setBillboardOrigin | ( | BillboardOrigin | origin | ) |

Sets the point which acts as the origin point for all billboards in this set.

Remarks
  This setting controls the fine tuning of where a billboard appears in relation to it's position. It could be that a billboard's position represents it's center (e.g. for fireballs), it could mean the center of the bottom edge (e.g. a tree which is positioned on the ground), the top-left corner (e.g. a cursor).

  The default setting is BBO_CENTER.

Parameters

  origin | A member of the BillboardOrigin enum specifying the origin for all the billboards in this set.

Definition at line 142 of file OgreBillboardParticleRenderer.h.

References Ogre::BillboardSet::setBillboardOrigin().

## setBillboardRotationType()

void Ogre::BillboardParticleRenderer::setBillboardRotationType | ( | BillboardRotationType | rotationType | ) |

Sets billboard rotation type.

Remarks
  This setting controls the billboard rotation type, you can deciding rotate the billboard's vertices around their facing direction or rotate the billboard's texture coordinates.

  The default settings is BBR_TEXCOORD.

Parameters

  rotationType | A member of the BillboardRotationType enum specifying the rotation type for all the billboards in this set.

## setBillboardType()

void Ogre::BillboardParticleRenderer::setBillboardType | ( | BillboardType | bbt | ) |

Sets the type of billboard to render.

Remarks
  The default sort of billboard (BBT_POINT), always has both x and y axes parallel to the camera's local axes. This is fine for 'point' style billboards (e.g. flares, smoke, anything which is symmetrical about a central point) but does not look good for billboards which have an orientation (e.g. an elongated raindrop). In this case, the oriented billboards are more suitable (BBT_ORIENTED_COMMON or BBT_ORIENTED_SELF) since they retain an independent Y axis and only the X axis is generated, perpendicular to both the local Y and the camera Z.

Parameters

  bbt | The type of billboard to render

## setCommonDirection()

void Ogre::BillboardParticleRenderer::setCommonDirection | ( | const Vector3 & | vec | ) |

Use this to specify the common direction given to billboards of type BBT_ORIENTED_COMMON.

Remarks
  Use BBT_ORIENTED_COMMON when you want oriented billboards but you know they are always going to be oriented the same way (e.g. rain in calm weather). It is faster for the system to calculate the billboard vertices if they have a common direction.

Parameters

  vec | The direction for all billboards.

## setCommonUpVector()

void Ogre::BillboardParticleRenderer::setCommonUpVector | ( | const Vector3 & | vec | ) |

Use this to specify the common up-vector given to billboards of type BBT_PERPENDICULAR_SELF.

Remarks
  Use BBT_PERPENDICULAR_SELF when you want oriented billboards perpendicular to their own direction vector and doesn't face to camera. In this case, we need an additional vector to determine the billboard X, Y axis. The generated X axis perpendicular to both the own direction and up-vector, the Y axis will coplanar with both own direction and up-vector, and perpendicular to own direction.

Parameters

  vec | The up-vector for all billboards.

## setKeepParticlesInLocalSpace()

void Ogre::BillboardParticleRenderer::setKeepParticlesInLocalSpace | ( | bool | keepLocal | ) |

virtual

Setting carried over from ParticleSystem.

Implements Ogre::ParticleSystemRenderer.

## setParameter()

virtual bool Ogre::StringInterface::setParameter | ( | const String & | name,
|  | const String & | value
| ) |  |

virtual inherited

Generic parameter setting method.

Remarks
  Call this method with the name of a parameter and a string version of the value to set. The implementor will convert the string to a native type internally. If in doubt, check the parameter definition in the list returned from StringInterface::getParameters.

Parameters

  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.

Returns
  true if set was successful, false otherwise (NB no exceptions thrown - tolerant method)

Referenced by Ogre::StringInterface::copyParametersTo().

## setParameterList()

virtual void Ogre::StringInterface::setParameterList | ( | const NameValuePairList & | paramList | ) |

virtual inherited

Generic multiple parameter setting method.

Remarks
  Call this method with a list of name / value pairs to set. The implementor will convert the string to a native type internally. If in doubt, check the parameter definition in the list returned from StringInterface::getParameters.

Parameters

  paramList | Name/value pair list

## setPointRenderingEnabled()

void Ogre::BillboardParticleRenderer::setPointRenderingEnabled | ( | bool | enabled | ) |

Set whether or not the BillboardSet will use point rendering rather than manually generated quads.

Remarks
  By default a billboardset is rendered by generating geometry for a textured quad in memory, taking into account the size and orientation settings, and uploading it to the video card. The alternative is to use hardware point rendering, which means that only one position needs to be sent per billboard rather than 4 and the hardware sorts out how this is rendered based on the render state.

  Using point rendering is faster than generating quads manually, but is more restrictive. The following restrictions apply:
  - Only the BBT_POINT type is supported
  - Size and appearance of each billboard is controlled by the material (Pass::setPointSize, Pass::setPointSizeAttenuation, Pass::setPointSpritesEnabled)
  - Per-billboard size is not supported (stems from the above)
  - Per-billboard rotation is not supported, this can only be controlled through texture unit rotation
  - Only BBO_CENTER origin is supported
  - Per-billboard texture coordinates are not supported

  You will almost certainly want to enable in your material pass both point attenuation and point sprites if you use this option.

Parameters

  enabled | True to enable point rendering, false otherwise

## setRenderQueueGroup()

void Ogre::BillboardParticleRenderer::setRenderQueueGroup | ( | uint8 | queueID | ) |

virtual

Sets which render queue group this renderer should target with it's output.

Implements Ogre::ParticleSystemRenderer.

## setRenderQueueGroupAndPriority()

void Ogre::BillboardParticleRenderer::setRenderQueueGroupAndPriority | ( | uint8 | queueID,
|  | ushort | priority
| ) |  |

virtual

Sets the render queue group and group priority this entity will be rendered through.

Remarks
  Render queues are grouped to allow you to more tightly control the ordering of rendered objects. Within a single render group there another type of grouping called priority which allows further control. If you do not call this method, all Entity objects default to the default queue and priority (RenderQueue::getDefaultQueueGroup, RenderQueue::getDefaultRenderablePriority), which is fine for most objects. You may want to alter this if you want this entity to always appear in front of other objects, e.g. for a 3D menu system or such.

  See RenderQueue for more details.

Parameters

  queueID | Enumerated value of the queue group to use. See the enum RenderQueueGroupID for what kind of values can be used here.
  priority | The priority within a group to use.

Implements Ogre::ParticleSystemRenderer.

## setUseAccurateFacing()

void Ogre::BillboardParticleRenderer::setUseAccurateFacing | ( | bool | acc | ) |

Sets whether or not billboards should use an 'accurate' facing model based on the vector from each billboard to the camera, rather than an optimised version using just the camera direction.

Remarks
  By default, the axes for all billboards are calculated using the camera's view direction, not the vector from the camera position to the billboard. The former is faster, and most of the time the difference is not noticeable. However for some purposes (e.g. very large, static billboards) the changing billboard orientation when rotating the camera can be off putting, therefore you can enable this option to use a more expensive, but more accurate version.

Parameters

  acc | True to use the slower but more accurate model. Default is false.

## visitRenderables()

void Ogre::BillboardParticleRenderer::visitRenderables | ( | Renderable::Visitor * | visitor,
|  | bool | debugRenderables = `false`
| ) |  |

virtual

Required method to allow the renderer to communicate the Renderables it will be using to render the system to a visitor.

See also
  MovableObject::visitRenderables

Implements Ogre::ParticleSystemRenderer.

## Member Data Documentation

## mBillboardSet

BillboardSet* Ogre::BillboardParticleRenderer::mBillboardSet

protected

The billboard set that's doing the rendering.

Definition at line 56 of file OgreBillboardParticleRenderer.h.

## msAccurateFacingCmd

CmdAccurateFacing Ogre::BillboardParticleRenderer::msAccurateFacingCmd

static protected

Definition at line 242 of file OgreBillboardParticleRenderer.h.

## msBillboardOriginCmd

CmdBillboardOrigin Ogre::BillboardParticleRenderer::msBillboardOriginCmd

static protected

Definition at line 237 of file OgreBillboardParticleRenderer.h.

## msBillboardRotationTypeCmd

CmdBillboardRotationType Ogre::BillboardParticleRenderer::msBillboardRotationTypeCmd

static protected

Definition at line 238 of file OgreBillboardParticleRenderer.h.

## msBillboardTypeCmd

CmdBillboardType Ogre::BillboardParticleRenderer::msBillboardTypeCmd

static protected

Definition at line 236 of file OgreBillboardParticleRenderer.h.

## msCommonDirectionCmd

CmdCommonDirection Ogre::BillboardParticleRenderer::msCommonDirectionCmd

static protected

Definition at line 239 of file OgreBillboardParticleRenderer.h.

## msCommonUpVectorCmd

CmdCommonUpVector Ogre::BillboardParticleRenderer::msCommonUpVectorCmd

static protected

Definition at line 240 of file OgreBillboardParticleRenderer.h.

## msPointRenderingCmd

CmdPointRendering Ogre::BillboardParticleRenderer::msPointRenderingCmd

static protected

Definition at line 241 of file OgreBillboardParticleRenderer.h.

The documentation for this class was generated from the following file:

- OgreBillboardParticleRenderer.h

Copyright © 2012 Torus Knot Software Ltd
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.