Skip to content

For exploring computer graphics and simulation of physics

Notifications You must be signed in to change notification settings

Qervas/water_simulation

Repository files navigation

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.

About

For exploring computer graphics and simulation of physics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published