• I am a Filmmaker/Researcher/Software Developer with interests in all things to do with Film, Animation, and Screenwriting. I studied for a PhD in Computer Graphics and Animation at the University of Sheffield, did a post-doc focusing on performance capture (face mocap) at the University of Surrey, and recently completed an MA in Filmmaking at the London Film School.


    Javascript Fluid Simulation

    As with the Javascript renderer, I wrote some fluid sim code in Java a few years back and it’s now ported over to JS. The code works using smoothed particle hydrodynamics, i.e. modelling using particles of fixed mass. This technique is used on a large scale in film effects to do water simulations as in The Day After Tomorrow etc.

    You can see the simulation at the below link, click-drag-release on the particles to add forces into the simulation. As before I recommend using a browser with a good JS implementation to run this code (e.g. Chrome).

    Fluid simulation (2500 particles)

     

    No Comments