Everything2
Near Matches
Ignore Exact
Full Text
Everything2

Particle System

created by cberube

(thing) by cberube (3.2 y) (print)   ?   I like it! Tue Oct 31 2000 at 2:21:27

"Particle System" is a term often used in computer graphics/computer programming to refer to a collection of objects ("Particles") which indivdually follow simple rules, but when combined simulate a complex system.

Various types of particle systems are often used to simulate rain, snow, explosions, fire, smoke, and many other natural and artificial or special effects.

In most cases each particle is assigned certain bits of information such as velocity, position, color, and size. There are often other outside forces which are applied to the particle system as a whole, such as wind and gravity. In more complex particle systems particles may interact with each other and the environment as well, allowing them to collide with the ground or other objects, attract or repel each other, and the like.

Pseudo-code (in broken C) for an extremely simple particle system follows:

typedef struct Particle {
   float X,Y;
   float XV, YV;
   int color;
};

Particle particle[NUMBER_OF_PARTICLES];

void main() {
   for (EACH_PARTICLE) {
      particle[CURRENT_PARTICLE].X += particle[CURRENT_PARTICLE].XV;
      particle[CURRENT_PARTICLE].Y += particle[CURRENT_PARTICLE].YV;
      DRAW_CURRENT_PARTICLE();
   }
}

printable version
chaos

void struct Particulate filter Elutriation
solar system virtual particle linked list main()
for int Float typedef
C simple bit Object
Y'know, if you log in, you can write something here, or contact authors directly on the site. Create a New User if you don't already have an account.
  Epicenter
Login
Password

password reminder
register

Everything2 Help

Cool Staff Picks
Look at this mess the Death Borg made!
The logic of atheism
EC Comics
I wrote you a letter on the bus back from the city, but that's a different kind of weary
Recommended reading
Mary, Queen of Scots
nightmare
Squished tubers and dead bird: An orphans' Thanksgiving
Panty Regents of the Planet Vajj
The Sleeping Gypsy
History of Techno
breast massage
hormone replacement therapy
Maxwell's demon
New Writeups
Dimview
Genie, meanie, miny, mo(fiction)
FrankThomas
existence proof(thing)
ChimbleySweep
Reverse ferret(thing)
Ysardo
Why I love Everything2(idea)
Apatrix
Boys Don't Cry(review)
locke baron
Kashin class destroyer(thing)
Rancid_Pickle
Wergle Flomp entry: "With Certainty"(poetry)
arcanamundi
Philadelphia Latin and Greek Institute(person)
minnow
Shotshell(thing)
graceness
What says the sea, little shell?(personal)
zoeb
protection(review)
sekicho
common seal(idea)
aneurin
The Smiley Face Murders(event)
minnow
shotgun shot sizes(thing)
rack and ruin
For Professor Sweeney: London Ad Lucem(idea)
Everything 2 is brought to you by the letter C and The Everything Development Company