Skip to content

Real-time simulation of Stable Fluids, Jos Stam, SIGGRAPH 1999.

License

Notifications You must be signed in to change notification settings

daichi-ishida/Stable-Fluids

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

59 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Stable-Fluids

This is the implementation of Stable Fluids by Jos Stam at SIGGRAPH 1999.

FFT method with periodic boundary condition is one way to solve the equation of diffuse and projection faster.

Build

Windows is not supported.

Libraries you need are

  • FFTW (version 3)
  • GLM
  • GLEW
  • GLFW

You can build and execute following command.

$ git clone https://github.com/daichi-ishida/Stable-Fluids.git
$ make
$ ./bin/main

Density is continuously added to the initial area by default.

If you want to set density only once at the beginning, add -o option that represents for "once".

$ ./bin/main -o

Screenshot

Screenshot

Each of red lines shows the direction of the grid's velocity and brightness represents density at the position.

About

Real-time simulation of Stable Fluids, Jos Stam, SIGGRAPH 1999.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published