Skip to content

0x7b1/cellular-automata-fluid-simulation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cellular Automata Fluid Simulation

This is an implementation of fluid/liquid dynamics using Cellular Automata. The purpose of this project is to show how dramatic is the difference of computing the evolution of cells with two approaches: naive grid cell evolution in CPU, and compute shaders in GPU.

You can find more about the journey of this project here.

Screenshot

How to play

  • The elements that can be drawn on the canvas are:
    • Ground NumKey 1
    • Water NumKey 2
    • Acid NumKey 3
  • Increase the size of the brush with the mouse wheel
  • Generate a new procedural cave map with N
  • Clean the map with C
  • Rotate the map with R
  • Quit the program with Esc

How to build

Dependencies

  • Rust
  • GLFW

Building from source

  • Clone the repository
$ git clone https://github.com/0x7b1/cellular-automata-fluid-simulation.git
$ cd cellular-automata-fluid-simulation
  • Run the simulation
$ cargo run

Resources

About

A Cellular Automata experiment of fluid simulation on GPU

Resources

Stars

Watchers

Forks

Packages

No packages published