Javascript Fluid Simulation in 1872 Bytes ~ 1 year ago
Click on the image above to run it.
I've made a port to Javascript of the famous Jos Stam's code from his paper "Real-Time Fluid Dynamics for Games", trying to get a nice thing to present in the great js1k.com contest.
I've reached 1872 Bytes using Closure compiler, and since almost no hand-made optimization was done yet, I think I could reach the 1024 Bytes limit, necessary to enter the contest. But I will not enter, for two reasons:
1. I don't feel this experiment visually interesting enough, and the optimizations I'd made will degrade it even more.
2. I prefer to participate in the contest with my 1024 Bytes pong. It's my original code, and not a port of someother's code.
But as usual, it really was a lot of fun! :)
Here is the original uncompressed code.
later! :)
