This is a WebGL + ThreeJS based module for animating particles over a texture. The input is a simple image which is converted into a texture and used as a basis for the attraction forces of the particles.
This project is based and inspired from Léo Chéron's experiment - GPGPU particles.
- Install all dependencies:
npm install
- Run:
node browserify.js
. - When the build is complete i.e.
js/bundle.js
is created, you can simply launch the animation by openingindex.html
in your browser.
Note on module loading: This project uses Browserify to load the scripts. Running
node browserify.js
will start Browserify which will build once and watch for changes to the script files. You can find the bundle file built by Browserify created asjs/bundle.js
.