linusmossberg / fluid-simulator

Real-time 2D fluid simulator with lots of visualization options.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Fluid Simulator

Left to right, top to bottom: Ink, streamlines, speed and arrows, pressure, curl.

Building

Start by cloning the program and all submodules using the following command:

git clone --recursive https://github.com/linusmossberg/fluid-simulator

Build files can then be generated with CMake using:

cd fluid-simulator
mkdir build
cd build
cmake ..

These should work automatically, but a few additional packages are required on certain platforms. On Debian/Ubuntu, these can be installed using:

apt-get install xorg-dev libglu1-mesa-dev

and on RedHat/Fedora:

sudo dnf install mesa-libGLU-devel libXi-devel libXcursor-devel libXinerama-devel libXrandr-devel xorg-x11-server-devel

About

Real-time 2D fluid simulator with lots of visualization options.

License:MIT License


Languages

Language:C++ 83.3%Language:GLSL 14.9%Language:CMake 1.9%