|
|
| Particle engine |
|
The Master
Member #4,498
April 2004
|
Ok, here's the deal. I need an open-source particle engine that really rocks. I honestly can't be assed to do the programming because I have tried before and the math just never works out. So I wanted to ask if anyone knows of an open-source particle engine, preferably with scriptable particle types. Who ever has written one, and hasn't abandoned it or left it half-finished, will be given full credit for his/her work. We can only do what we feel is right each moment as we live it. |
|
Archon
Member #4,195
January 2004
|
Maybe this? I don't think that it's really what you want but it may give you leads. Honestly, particle effects are easy to do... |
|
The Master
Member #4,498
April 2004
|
Was that written with allegro? or does it use a different base for graphics? I'm not terribly good at those sorts of things. And anyway, if I can get a particle engine that's customisable and works with allegro, it takes another entry off my long list of headaches with writting a good RPG engine. We can only do what we feel is right each moment as we live it. |
|
Wilson Saunders
Member #5,872
May 2005
|
I agree with Archon. Particle effects are not that difficult, unless you are modeling something really complex. Perhaps it would help us understand your problem if you described what you wanted to model with these particles. ________________________________________________ |
|
jamyskis
Member #6,557
November 2005
|
Look at me - I scream NOOB. I've just put a rockin' particle system into my game, and it took me about an hour. Trust me and the other guys - it is not difficult. You don't have to worry about loads of maths - it just needs to look cool __________________________________________________________________ |
|
Jonatan Hedborg
Member #4,886
July 2004
|
Aye. Most effects can be achieved using particles, particle emitters and particle "affectors" (attracting, repulsing, dampening etc). Emitters and affectors should be treated as game objects (so they can be moved though physics or by some other logic. Whatever really), while particles are usually best treated as a simple (non-oop) struct with position, velocity, life, type and possibly other things like colors, fade-type etc and functions like "draw", "update" and "addForce". I handle it all like this; I have an object "particleCollection", which has a list of the particles under it's control, together with the affectors used on them.
|
|
Trezker
Member #1,739
December 2001
|
Damnit guys, now you made me want to make a particle system... |
|
The Master
Member #4,498
April 2004
|
Quote: Perhaps it would help us understand your problem if you described what you wanted to model with these particles. I want to be able to script battle animations. Rather than having hundreds of sprite images in the datafile that describe all said battle animations, I can just load a script defining the animation and render it on the fly. I've had a look at EGG, and it seems to do what I'm after. Quote:
I handle it all like this; I have an object "particleCollection", which has a list of the particles under it's control, together with the affectors used on them. Did you make a particle engine? We can only do what we feel is right each moment as we live it. |
|
Jonatan Hedborg
Member #4,886
July 2004
|
Sort of, yeah. I could probably dig out (and clean up) the sources when i get a bit of free time. It has the basic functionality, but not many particle types or emitters.
|
|
The Master
Member #4,498
April 2004
|
Don't worry about it. EGG is a starting point, and the code isn't too hard to read. I'll stick with that and expand on it. I just wanted the basic functionality taken care of. Believe me, I've been programming that RPG engine, and there are alot of modules to keep track of, and sometimes when I add a new one, bugs pop up in others. The more corners I can safely cut the better, hence why I was after a particle engine. We can only do what we feel is right each moment as we live it. |
|
Kibiz0r
Member #6,203
September 2005
|
Quote:
Damnit guys, now you made me want to make a particle system...
Hehe, ditto. I've been considering it for a while, but I'm just not far enough into development to set aside time for it yet, so I'm leaving it as a dessert. --- |
|
Ariesnl
Member #2,902
November 2002
|
try this : header:
implementation
This was grabbed from my game engine.. Perhaps one day we will find that the human factor is more complicated than space and time (Jean luc Picard) |
|
|