Skip to content
liaocheng edited this page Nov 8, 2011 · 3 revisions


the sample of a particle

  • the sample is a combination of a geometry and texture of a particle.
    • You can get the geometry from the primitives or from the Loader3D.
    • You can set the texture as a pure color texture or bitmap texture.
    • You can create many samples for next cpu stage.
    • The different samples can share geometry or texture.

the cpu stage

  • It’s the generation stage.in this stage,the sample(or different samples) is clone to many particles.
    • The different attributes (va) for each particles is created at this stage.This attributes can’t be change once they be created.
    • Each local action will participate in generating different attributes,meanwhile save the results.
    • After this stage,you can clone the container so that you can use many instances.

the gpu stage

  • It’s the render stage.Every frame will render once.In this stage,all particles will be rendered by all actions.
    • The 1st action is always the TimeAction.It’s will figure out the current time and life each particles.
    • Other action will use the time or life to figure out the offest,rotation,scale,color and so on.
    • In this stage,each priticles don’t know any information of other particles.
    • Every frame is independent,so you can jump frame to render,even reverse frame to render.
Clone this wiki locally