How to create fireworks particle graphics effect on android
Solution 1
That's a very abstract (and interesting) question but far too complex to answer in details.
What you're really looking for is probably a sort of a modified particle system. A particle system is basically an engine for particles that includes a physics engine.
However, what you should focus on are these:
- Memory Pool pattern - useful for fireworks since you don't want to allocate objects during runtime.
- Particle system tutorial - great and the tutorial is specifically for Android.
- Particle system - great, but for C++.
Once you built it (or gotten an understanding about it) you can easily convert it to the Canvas
system, although OpenGL
is the preferable alternative.
Solution 2
I just released the v1.1 of a library that does particle system for normal android views: https://github.com/plattysoft/Leonids
I know the question is quite old, and you probably had implemented it yourself, but in case you are still interested on using a library, check it out.
Lumis
Updated on January 12, 2020Comments
-
Lumis over 4 years
Anybody has any idea how to make a fireworks effect by drawing on canvas? There is one nice example in wireworks live wallpaper (free app).
There, many points move and leave trails in a star like explosion and gradually disappear. I think that there is some kind of motion blur on each point moving, which I am not sure how to create.
Any ideas or links to relevant examples are welcome.