VBGamer |
|||||||||||||||||||||||||||||||||||||||||||||||||||||
RE: How do I make a Particle Engine? Lynx of CP (2 replies, 0 views) (2000-Jun-15) Hehe, well, I've never tried makind a particle engine, but I can try to put things in lamens terms from what I gather.
Take for example the exaust system in a car,
your emitter, the exhaust pipe is the place where the particles will come from and be seen from. okay?
then you will have an array of particles, each with different information about their direction and colour, you can't have smoke going backwards back into the car....
So, your emitter would have a few values which determine the maximum and minimum values it can handle...
MaxAngle & MinAngle are the top and bottom angles in which the smoke can blow, like I said, I don't think the exhaust goes back into the motor... *Bang*
MaxSpeed & MinSpeed are the top and slowest speeds of the particles, in this case, they control the speed of the X coordinate.
MaxColour & MinColour are the colour of the particle, for interesting effects, every particle should be slightly different in colour, all though, for impressive effects, perhaps you should split it up into max and min RGB values...
so, those are the constants that the emitter would use, plus, the emitter would have it's own X and Y co-ordinates.
The particle arrays would have the following properties:
Angle, Speed, Colour, X and Y. Angle, Speed and Colour are values in the range of the appropriate emitter properties, whereas the X and Y co-ordinates say where the particle currently is.
Anyway, I hope that gives some insight into how to represent particles :)
Reguards,
Steven Blom AKA
LynxofCP (Lynx of Central programming)
|