davidedc / Basic-fluid-simulation-in-the-browser

basic fluid simulations in the browser using the Smoothed-particle hydrodynamics (SPH) method. Based on Yusuke Endoh's "Most complex ASCII fluid" obfuscated C code competition 2012 entry.

Home Page:http://davidedc.github.io/Basic-fluid-simulation-in-the-browser/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

What

A very simple fluid simulation running in your browser.

Demo here.

demo animation

For more info on the how the Smoothed-particle hydrodynamics (SPH) method is implemented, see this readme in my other related github project.

Hack it!

...just hack the javascript files. If you want to work on the coffeescripts, install node and node-coffee, then use this terminal command to automatically generate the .js files (and the .map files to help with the debugging):

coffee --watch -c --bare --map *.coffee

Also see...

I also made a few C versions.

About

basic fluid simulations in the browser using the Smoothed-particle hydrodynamics (SPH) method. Based on Yusuke Endoh's "Most complex ASCII fluid" obfuscated C code competition 2012 entry.

http://davidedc.github.io/Basic-fluid-simulation-in-the-browser/


Languages

Language:CoffeeScript 86.5%Language:HTML 13.5%