Skip to content

Latest commit

 

History

History
57 lines (35 loc) · 1.82 KB

README.md

File metadata and controls

57 lines (35 loc) · 1.82 KB

Position Based Fluids and Screen Space Fluid Rendering

A fluid simulation system based on Position Based Fluids and screen space rendering technique built from scratch with OpenGL.

Demo

Final Rendering

Particle Only 1

Particle Only 2

Build

Dependencies

  • GLM: already included in this repository
  • stb_image: already included in this repository
  • GLFW: needed to be installed; e.g., from the official website. The CMakeLists.txt should be able to find the library after installation
  • Windows/Linux: macOS doesn't support the latest OpenGL including compute shader

Build Script

Linux

The project's build system is cmake. To build the project, run the following shell command:

cmake -S . -B build
cd build
cmake --build .

After executing the commands, you be able to find executable main

Windows

You can use the same commands as above if you've activated Visual Studio environment in your terminal.

Alternatively, simply open the repository in Visual Studio and build it as usual.

Run

Run the executable main or main.exe built as above.

Control

  • Arrow keys: control the boundary of the fluid
  • R key: reset the fluid
  • mouse drag: control the camera

Reference