Real-time 2D Eulerian fluid simulation using OpenGL compute shader.
GPUFluid2D.mp4
An experimental implementation of fluid interaction.
-
Real-time 2D Eulerian fluid simulation based on StableFluids
-
Vorticity confinement
-
MacCormack advection
-
Download prebuilt application from here.
-
Extract zip file and execute GPUFluid2D.exe inside bin folder.
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.
-
Clone this repositoty.
-
Create a new directory named "external" in the /GPUFluid directory.
-
Download OreOreLib and put extracted directory into "external".
-
Download GraphicsLib and put extracted directory into "external".
-
Open VisualStudio project
- /GPUFluid/dev/GPUFluid2D/GPUFluid2D/GPUFluid2D.vcxproj
-
Modify "Additional Include Directory" and "Additional Library Directories" settings related to following libraries
-
freeglut
-
AntTweakBar
-
FreeImage
-
-
Build project.