Said6289 / smoke

A simple implmentation of Jos Stam's Stable Fluids paper

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

smoke

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.

Dependencies

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.

Building

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.

Features to be added

  • Boundary conditions
  • Better advection algorithm (BFECC, MacCormack, etc)
  • Multigrid pressure solver
  • At least one-way rigid body coupling
  • User interaction
  • Use compute shaders

About

A simple implmentation of Jos Stam's Stable Fluids paper

License:MIT License


Languages

Language:C 81.7%Language:Odin 18.2%Language:Makefile 0.1%