glscene

 

TGLPerlinPFXManager

Page history last edited by skinhat 4 yrs ago

Is a particle manager that animates particles using Perlin noise. Perlin noise is random noise thats interpolated. TGLPerlinPFXManager can be used to create realistic snow.

Like all effects (eg fire effect) the Perlin noise effect is added to the effects property of a TGLSceneObject as the effects class TGLSourcePFXEffect. The manager of the effect is set to TGLPerlinPFXManager. Refer to the effects article for more information regarding effects.

Important TGLPerlinPFXManager properties include:

particlesize: Particle size

acceleration: TGLCoordinates The direction in which the particles accelerate. For example it is possible to accelerate particles in the x axis direction to give the effect of particles coming out of a spraycan.

renderer: TGLParticleFXRenderer

TGLPerlinPFXManager requires a second renderer. Please fill in this sentence if you know the reason why. For TGLPerlinPFXManager use a TGLParticleFXRenderer.

lifecolors: TPFXLifeColors

Gives particles a certain life time before they disappear. It allows the color to be set for the particle at a certain time. For example after five seconds the particle is blue.

aspectratio: single Ratio of the width to height for a particle. For example it is possible to have a particle that is wider in the x direction than in the y.

Demo: CVS/Demos/specialsFX/beer

Unit: GLPerlinPFX

Descends from TGLBaseSpritePFXManager.

Comments (0)

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