Skip to content

Files

Latest commit

 

History

History
42 lines (29 loc) · 2.67 KB

README.md

File metadata and controls

42 lines (29 loc) · 2.67 KB

Water Simulation

Combined SPH and OpenGL.

1696963993957

Demonstration Video

Todo

  • A free 3D camera
  • Water particles simulation
  • Basic visual effect: skybox, lighting, texture
  • Connect particles into a surface

Building Requirement

CUDA, gcc, glfw3, GLEW, CMake

User Manual

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

Acknowledgments

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.