Skip to content

rpehkone/Fluid-simulation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Fluid simulation using real-time Navier-Stokes equations
Raymarched fluid sims are state of the art in real-time vfx
      https://www.youtube.com/c/AndrasKetzer/videos

Code from paper, i rewrote for rectangular && 3d && engine integration
c software render with wasm emscripten
emcc -sWASM=1 -sSINGLE_FILE=1 -sSTRICT=0 -sASSERTIONS=0 -sMEMORY64=0 -O3

From paper
      https://www.researchgate.net/publication/2560062_Real-Time_Fluid_Dynamics_for_Games
      https://en.wikipedia.org/wiki/Navier%E2%80%93Stokes_equations
      https://wdv.com/Aerospace/Fluids/StamFluidsforGames.pdf
Patent expired
      https://patents.google.com/patent/US6266071B1/en

In game engine: