Skip to content

shinjeongmin/GPGPU-FluidSimulation-three.js

Repository files navigation

three.js Fluid Simulation with SPH

test step : particle gravity acceleration

I used the GPUComputationRenderer plugin as a means to utilize GPGPU in the three.js environment.

integrate function

implement SPH fluid simulation using GPGPU

Massive particle computations using the GPU.
The fluid simulation was implemented using the SPH method,
and the number of particles in the video below is 20x20x20.

SPH simulation

Things Learned After Using GPUComputationRenderer in three.js

Even when using the GPU to compute particles,
if the number of particles exceeds a certain threshold,
it's not just that the speed slows down, but WebGL stops rendering altogether.

About

implement SPH fluid simulation with three.js GPGPU

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published