SAP Particles Extension

author:
Sergey Gonchar
lastupdate:
2015-03-24
compatible:
v1.6.1
tag:
particles, effects
homepage:
https://github.com/gonchar/SAP
download:
https://github.com/gonchar/SAP/archive/master.zip

Overview

SAP is a port of Alternativa3D Particle System to Starling Framework. This particle system is really well optimized for rendering on mobile. All particle data goes to GPU through vertexconstants. There are no any vertexbuffer uploads each frame.

Basic concepts:

  • PartcleSystem manages ParticleEffects
  • To create your effect you have to extends ParticleEffect class which will manage ParticlePrototype instances inside.
  • ParticleEffect and ParticlePrototype have timelines. You can add keys to them with addKey method.
  • Check out Source Code section with Fire example
  • Each particle has “z” property that can be used as a sort value. To enable this feature, please set ParticleSystem.sortParticlesByZ flag to true

Github repository includes the source code of this Demo

SAP Editor coming soon.

Changelog

  • 2015/03/25 19:11: First public version

Source Code

Fire Effect example

User Comments

Feel free to edit this part of the page!

  extensions/sap.txt · Last modified: 2015/03/29 10:54 by gonchar
 
Powered by DokuWiki