Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

52 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Real-Time SPH Fluid Simulation

A real-time SPH fluid simulation with screen space rendering running on the GPU.

Installation

Requirements

The program was developed and tested on Ubuntu 22.04 LTS, using OpenGL 4.3 core and SDL 2.0.

Install the required libraries:

sudo apt install build-essential
sudo apt install libsdl2-dev
sudo apt install libglew-dev

Building

Build the project using:

make

Build files will be places inside build/.

To clean build files (but keep the executable) run:

make clean

Usage

Run the application using

./main

Controls

  • Move the mouse to orbit the camera
  • Click and drag to advect the fluid
  • ESC closes the application
  • SPACE pauses the simulation
  • 1, 2 and 3 respawn the particles in different configurations
  • r toggles fluid rendering
  • s toggles skybox

About

A real-time SPH fluid simulation using C and OpenGL.

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages