Overview
This entirely self-contained particle engine was written in C++ under Visual Studio .NET. It was used in several of my larger programming projects, including Little Johnny Has Cirrhosis. It includes the following features/effects:
- Encapsulated inside a C++ class, so the user can include the engine in any OpenGL project by making calls to only a few simple interface functions
- User-specifiable emitter-position
- Point or Line sources
- User-specifiable angle of emission
- Variable particle emission velocities
- Variable particle lifetimes
- Variable particle sizes
- Textured/colored/blended particles
- Universal (i.e. specified by a direction) Gravity
- Local (i.e. specified by a point) gravity
- Time-based or Frame-based movement
Images
Here is a shot of the driver I wrote for testing & debugging; it's a simple windows dialog box that controls the particle engine. The actual rendering is performed in a separate popup GLUT window:

Here is an example of some particles shooting out towards the left, and being sucked in by a gravity-point near the center of the cube; The cube is included in the background to show the particles’ transparency.

Here, the particles are being emitted straight up, and being sucked into a gravity-point just above and to the right of the emitter

This is what happens if you give a gravity-point a negative strength: it repels particles

All of the above examples use some randomization for the particle lifetimes, therefore particles are emitted in a constant stream. Below, every particle has the same lifetime, so they are emitted in bursts that look like rings coming out from one point

Here is an example where the emitter bursts new particles out before reclaiming all of the particles from a previous burst

This is what a line-source looks like, with solid (non-blended) particles

Finally, some general gravity in the y-direction…looks like a water fountain!




Recent Comments
02/3/2012 @ 09:05pm
Ah - I didn't realize you were using Buddypress (because again, you ignored the bold red note above this form...) The ...
02/3/2012 @ 08:57pm
In buddypress you can upload your picture to use as an avatar. It stores them here wp-content\uploads\avatars The admin avatar (uploaded pic) ...
02/3/2012 @ 07:25pm
Hello! I've just stumbled across your site whilst looking online for a Bangkok apartment to rent... amazing amount of leg ...
02/3/2012 @ 09:22am
Hey all, One of my users was just kind enough to point out that it actually *is* possible to import individual ...
02/3/2012 @ 08:49am
The support page is here; please see FAQ31. What support pop-up form?
02/3/2012 @ 08:46am
I just purchased your premium FB autoconnect, and dropped the php file in the plugin folder, but the admin is ...
02/2/2012 @ 09:38pm
...Well as mentioned, this has never come up before (and I didn't even have that FAQ until just now - ...
02/2/2012 @ 09:17pm
>>.…Just logged into your site. As I said, the option wasn’t even enabled. I enabled it, clicked save, and the ...
02/2/2012 @ 09:16pm
@George: >>the original admin avatar was deleted totally. I had to recopy original avatar to restore. ...Recopy the avatar? What do ...
02/2/2012 @ 09:13pm
I found that when my personal facebook page synced with the wp admin account - the original admin avatar was ...
02/2/2012 @ 09:12pm
...Just logged into your site, and as I said, the option wasn't even enabled. I enabled it, clicked save, ...
02/2/2012 @ 09:11pm
Just sent access info to where I think I can reach you. I just looked at the code and don't ...
02/2/2012 @ 09:00pm
Well honestly, I don't know what to tell you. I'm looking at your page's source code (on the .biz site) ...
02/2/2012 @ 08:53pm
LOL, yes, I thought I might have been using the basic and not premium widget. Double checked and that's not ...