Skip to content

arynh/web-fluid

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

73 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

web-fluid

A web-based, 3D, real-time fluid simulation.

Final Project for CS 419, Production Computer Graphics, at UIUC.

simulation preview

Authors:

  • Idan Raiter
  • Curie Hong
  • Rishi Pandey
  • Aryn Harmon

Outline of Simulation

For every simulation loop:

  • clear the grid velocities
  • project particle velocities to the grid
  • copy the grid to store the version from the previous time step
  • mark cells as solid, fluid, or air
  • perform gravity update
  • enforce boundary conditions
  • do the pressure solve and generate new grid velocities
  • enforce boundary conditions
  • update the velocities of the particles
  • update the positions of the particles

Installation

To install this project, clone the repository and run yarn in the root directory. Then you can run yarn dev to start the local development server.

fake water

About

A web-based, 3D, real-time fluid simulation.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published