This is a simple implementation of Jos Stam's Stable Fluids paper written in the Odin programming language.
I would like to thank Morten Vassvik for pointing me to the paper and helping me out with the math and conceptual stuff :)
The code has only been tested on Linux.
See the repositories for installation instructions. This code
expects the dependencies to be installed in the shared
package
collection.
- stb_truetype which is included directly in this repository and does not need to be installed separately.
Currently, only Linux has been tested and the code can be built with make
,
which just builds stb_truetype
with clang
and then invokes the Odin
compiler.
- Boundary conditions
- Better advection algorithm (BFECC, MacCormack, etc)
- Multigrid pressure solver
- At least one-way rigid body coupling
- User interaction
- Use compute shaders