PDA

View Full Version : Paticlesystem for JavaScript??


SIGINT
09-24-2002, 07:41 AM
Hi everybody,

does anyone know if there's a 2D particlesystem avaiable for javascript to realize effects like smoke or water fontains??

THX SIGINT

beetle
09-24-2002, 07:53 AM
Even if it does exist, I doubt that most computers would like it very much. You are basically talking about creating, animating and deleting (small) objects. The problem is that for a decent particle system you'd need at least 100 particles and their animation is all based on gravitic movement. That's alot of physics-based calculations for a simple browser to make....

brothercake
09-24-2002, 10:02 AM
I saw a Java applet that did something similair http://javaboutique.internet.com/Difus/index.html

mordred
09-24-2002, 03:14 PM
I don't know for sure if it's related or not, but there is a toolkit for creating 3d animations in javascript...
http://3dhtml.netzministerium.de/

perhaps it gives you something to start with.

SIGINT
09-24-2002, 03:57 PM
Thanks everybody,
i saw that the 3D Toolkit will have Particlesystems some day...
i'll just wait until it's released.

Sincerly SIGINT

RoyW
09-24-2002, 04:55 PM
This is not exactly a "Particle System" but each "dot" is an object that has its own velocity and acceleration. I used this to create a
Torch (Fire) Mousetrailer (http://www.javascript-fx.com/mouse_trail/fire/demo4.html)
and Water Droplets mouse trailers
demo1 (http://www.javascript-fx.com/mouse_trail/droplets/demo1.html)
demo2 (http://www.javascript-fx.com/mouse_trail/droplets/demo2.html)

I am currently working on creating fireworks (http://www.javascript-fx.com/development/fireworks1.html)

I don't know about particle systems for creating smoke but the water droplets or fire script could probably be adapted to create a water fountain.

SIGINT
09-24-2002, 05:39 PM
@ RoyW:
Hey that's cool... i like the firework, but you must add a bit more randomness...

Thx SIGINT