Skip to content

PWhiddy/Fat-Clouds

Repository files navigation

3D Fluid

A bare-bones but polished fluid simulator and volumetric renderer written in CUDA C/C++ in ~600 LOC.

There are videos!

The organization is based on Philip Rideout's 2D OpenGL simulator (http://prideout.net/blog/?p=58),
as well as George Corney's interactive WebGL demo (https://github.com/haxiomic/GPU-Fluid-Experiments)

TODO: More consolidation of simulation and state parameters. Temperature-based shading. Support for data types smaller than 4 byte floats.

Setup

In build.sh, check that the path to your cuda installation is correct. Then run build.sh to create an executable.

Navier Tokes yo

Testing the renderer with spheres

Releases

No releases published

Packages

No packages published