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
05/21/2012 @ 06:06am
Thanks for the great plugin. It works simply great. Keep on that good work.
05/21/2012 @ 12:58am
FAQ101
05/21/2012 @ 12:52am
My Facebook login button works on the homepage, but if I go to any other page and try to click ...
05/20/2012 @ 06:49pm
I'm planning on living in Chiang Mai, Thailand for at least 3 months. I'm also a programmer and heading in ...
05/19/2012 @ 11:15pm
Ok thanks, now i have plugin works :)
05/19/2012 @ 11:07am
After following this, the flags are still not showing for me. I did not however clear the cache as I can ...
05/19/2012 @ 12:00am
I haven't personally tried all of the Facebook Comments implementations, but as long as the one you use doesn't re-include ...
05/18/2012 @ 04:56am
Hi sir, I have buy premium fb autoconnect but when i activated plugin FB Comment we8u.com , user can't connect "Error: ...
05/17/2012 @ 10:06pm
Thanks for the work you have done and shared Justin. Using the WP Guestbook plugin on http://parentingwithoutpartners.org and other sites. ...
05/17/2012 @ 04:32am
Thanks - and glad it's back up :)
05/17/2012 @ 01:03am
See FAQ100, 1st subitem (...and FAQ101)
05/16/2012 @ 09:52pm
Im getting the following error, do I need to purchase the premium version? Im pretty sure im not running a ...
05/16/2012 @ 07:53pm
Thanks Justin, seems to be working. Also, great job here, I think this is the first travel blog I've ...
05/16/2012 @ 01:24pm
Ii is working :-)