Skip to content

A real time fluid simulation using C++ and OpenGL

Notifications You must be signed in to change notification settings

lucac123/neptune

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

neptune

A real-time fluid simulation implementing Jos Stam's "Stable Fluids" 1 solver, and computed on the GPU based on the techniques described by Mark J Harris in GPU Gems 2.

Examples

gif Viscosity Constant: 0.00001, Diffusion Constant: 0.00001 gif Viscosity Constant: 0.00001, Diffusion Constant: 0.0005 gif Viscosity Constant: 100, Diffusion Constant: 0.0005

See demos for video files

Implementation Details

Implementation stores velocity fields and substance density fields for each timestep, and operates on them using fragment shaders, rendering the result of each operation to a framebuffer bound to a texture.

Footnotes

  1. Stam, Jos. "Stable fluids." Proceedings of the 26th annual conference on Computer graphics and interactive techniques. 1999. https://pages.cs.wisc.edu/~chaol/data/cs777/stam-stable_fluids.pdf

  2. Harris, Mark J. "Fast fluid dynamics simulation on the GPU." SIGGRAPH Courses 220.10.1145 (2005): 1198555-1198790. https://developer.nvidia.com/gpugems/gpugems/part-vi-beyond-triangles/chapter-38-fast-fluid-dynamics-simulation-gpu

About

A real time fluid simulation using C++ and OpenGL

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published