PWhiddy / Fat-Clouds

GPU Fluid Simulation with Volumetric Rendering

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

GPU Fluid Simulation with Volumetric Rendering


Languages

Language:Cuda 50.8%Language:C++ 48.4%Language:Shell 0.7%