glscene

 

TGLSourcePFXEffect

Page history last edited by skinhat 4 yrs ago

The effect class for particles that have an effects mananger descending from TGLParticleFXManager. For example the Perlin noise particles effects mananger descends from this class therefore requires the effect TGLSourcePFXEffect when the Perlin noise mananger is used. TGLSourcePFXEffect allows variations between effects that share the same mananger. For example two effects sharing a TGLPerlinPFXManager can have different rates of particle production.

TGLSourcePFXEffect allows specifying the rate of particle production, scale of area that particles are found in (eg particles take up twice as much space in the y direction as opposed to the x direction) and the velocity at which particles move.

Important TGLSourcePFXEffect properties include:

particleinterval single

Time in seconds between the production of each particle

positiondispersion TGLCoordinates

Scale of the area that the particles a found. For example set the vector to (1,2,1) if you want particles to take up twice as much space in the y direction as opposed to the x and z direction

velocitydispersion single

Speed at which particles move. Set this greater than zero for a snow effect when using a Perlin noise manager. Set to zero for particles to sit still

effectscale single

Scale of the area that the particles are found in

manager TGLParticleFXManager: The mananger that generates the particles

Refer to the effects article for more information regarding effects.

Demo: CVS/Demos/specialsFX/beer

Unit: GLParticleFX

Descends from TGLParticleFXEffect.

Comments (0)

You don't have permission to comment on this page.