Skip to content

Real-time 2D Eulerian fluid simulation.

License

Notifications You must be signed in to change notification settings

BenJ778/GPUFluid

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GPUFluid

Real-time 2D Eulerian fluid simulation using OpenGL compute shader.

GPUFluid2D.mp4

About

An experimental implementation of fluid interaction.

Features

  • Real-time 2D Eulerian fluid simulation based on StableFluids

  • Vorticity confinement

  • MacCormack advection

Running application

  1. Download prebuilt application from here.

  2. Extract zip file and execute GPUFluid2D.exe inside bin folder.

Building application

Prerequisities

Following system configurations are required to build application.

  • Windows 10(or later) with Visual Studio Community 2017 installed

  • freeglut*

  • AntTweakBar*

  • FreeImage*

* Installed under D:\Lib\ in my configuration.

Setup

  1. Clone this repositoty.

  2. Create a new directory named "external" in the /GPUFluid directory.

  3. Download OreOreLib and put extracted directory into "external".

  4. Download GraphicsLib and put extracted directory into "external".

  5. Open VisualStudio project

    • /GPUFluid/dev/GPUFluid2D/GPUFluid2D/GPUFluid2D.vcxproj
  6. Modify "Additional Include Directory" and "Additional Library Directories" settings related to following libraries

    • freeglut

    • AntTweakBar

    • FreeImage

  7. Build project.

About

Real-time 2D Eulerian fluid simulation.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published