Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/narasan49/bevy-fluid-sample
https://github.com/narasan49/bevy-fluid-sample
bevy fluid-simulation
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/narasan49/bevy-fluid-sample
- Owner: narasan49
- Created: 2024-06-17T12:41:49.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2024-08-31T12:10:16.000Z (4 months ago)
- Last Synced: 2024-09-27T07:03:36.078Z (4 months ago)
- Topics: bevy, fluid-simulation
- Language: Rust
- Homepage: https://narasan49.github.io/bevy-fluid-sample/
- Size: 48.5 MB
- Stars: 4
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# bevy fluid sample
This project is a fluid simulation sample built using the Bevy engine.
Try it on [here](https://narasan49.github.io/bevy-fluid-sample/)!
## Features
- [x] Invicid, incompressible 2D fluid simulation
- [x] One-way solid body to fluid interaction## Getting Started
To run the Bevy Fluid Sample, you will need to have Rust and Cargo installed on your system. Follow these steps to get up and running:
1. Clone the repository:
```ps1
git clone [email protected]:narasan49/bevy-fluid-sample.git
```2. Navigate to the project directory:
```ps1
cd bevy-fluid-sample
```3. Build and run the project:
I have some examples to demonstrate my fluid simulation:
- **Imposing forces with mouse and touch input**
(Also available [here](https://narasan49.github.io/bevy-fluid-sample/))
```ps1
cargo run --example interaction
```
https://github.com/user-attachments/assets/bcb7839d-115b-4bc9-ba78-68c4d1cdc7a2
- **Solid-to-fluid feedback**```ps1
cargo run --example demo
```
https://github.com/user-attachments/assets/af3e9aa5-b768-4375-ba44-a4876557524c## Acknowledgments
The simulation is inspired by and based on the algorithms described in these books:- [Fluid Simulation for Computer Graphics](https://www.amazon.co.jp/dp/1482232839) by Robert Bridson
- [GPU Gems Chapter 38](https://developer.nvidia.com/gpugems/gpugems/part-vi-beyond-triangles/chapter-38-fast-fluid-dynamics-simulation-gpu) by Mark J. HarrisI alse use [Kenny](https://kenney.nl/) assets for examples.