Combined SPH and OpenGL.
- A free 3D camera
- Water particles simulation
- Basic visual effect: skybox, lighting, texture
- Connect particles into a surface
CUDA, gcc, glfw3, GLEW, CMake
Key/Mouse Action | User Action | Functionality |
---|---|---|
Left Mouse Click | Hold | Focus on the camera and enable camera rotation |
Mouse Movement | Move Up/Down/Left/Right (after focusing the camera) | Rotate the camera lens in the corresponding direction |
W | Press/Hold | Move the camera forward a certain distance/continuously |
S | Press/Hold | Move the camera backward a certain distance/continuously |
A | Press/Hold | Move the camera left a certain distance/continuously |
D | Press/Hold | Move the camera right a certain distance/continuously |
Space | Press/Hold | Move the camera up a certain distance/continuously |
Ctrl | Press/Hold | Move the camera down a certain distance/continuously |
Shift | Hold | Increase camera moving speed, release to return to normal |
X | Press | Switch simulation status to running |
P | Press | Toggle simulation status between pause and running |
R | Press | Initialize SPH particle data, and pause simulation |
ESC | Press | Close the program |
This project is based on the Smoothed Particle Hydrodynamics (SPH) simulation computational method from CPP-Fluid-Particles. I extend gratitude to zhai-xiao for their foundational work that enables our project to implement.