Skip to content

Latest commit

 

History

History
63 lines (32 loc) · 1.65 KB

README.md

File metadata and controls

63 lines (32 loc) · 1.65 KB

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.