I created a basic particle system for SDL in C++. It has some basic stuff like an emitter, as well as a simple particle class. It can load a image, or create a dot of a color. And that's it. What other features do most simple particle engines have? Keep in mind this is a 2D particle engine.
|
|
Watch this video for some ideas that you can add to your system, in particular modifiers, which can be used to interpolate particle properties over time, such as color or opacity, or to apply complex gravitational forces to the system. These are often enough to create some really cool effects, when combined with a basic particle emitter. Afterwards, you might want to check the documentation of some existing particle engine to see what else they provide. The first one that comes to my mind is the Mercury Particle Engine, which also seems to be built around the concept of particle emitters and modifiers. Give it a test drive and it should be enough to answer your question. |
|||
|
|
|
This is a very broad question, but generally particle system features can be broken down into a few categories. Here are some general ideas for the sorts of things you might want to have. Emission features define how, when, and where particles are emitted.
Motion features control how particles move after they're emitted.
Rendering features control how particles look.
These are just a bunch of general ideas. For your specific game you might only need a couple of these, or you might need other ideas that aren't on this list. |
|||||||
|
|
I've been doing some research myself into this area. This tutorial seems to have brought me up to speed, even though I haven't been able to port it into my code yet: http://www.baysidegames.net/blog/?p=51 (includes videos that explain all of the code) |
|||
|
|