Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/eshan327/poisson-disk-sequences
Using Poisson-Disk sampling to visualize points with a variable distance constraint, backed by Rust & WASM.
https://github.com/eshan327/poisson-disk-sequences
cargo graphics rust
Last synced: 21 days ago
JSON representation
Using Poisson-Disk sampling to visualize points with a variable distance constraint, backed by Rust & WASM.
- Host: GitHub
- URL: https://github.com/eshan327/poisson-disk-sequences
- Owner: eshan327
- License: mit
- Created: 2024-09-15T04:06:41.000Z (5 months ago)
- Default Branch: main
- Last Pushed: 2025-01-08T00:34:19.000Z (22 days ago)
- Last Synced: 2025-01-08T01:17:14.554Z (21 days ago)
- Topics: cargo, graphics, rust
- Language: Rust
- Homepage:
- Size: 5.63 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## About The Project
Poisson-Disk Sampling is an algorithm to select points in a domain, in this case the device screen. It is frequently used in computer graphicals and procedural generation; this project attempts to visualize the process in Rust and WASM.
This project features support for both 2D and 3D visualizations, parameters that are customizable according to the user's preferences, and efficient sampling based on the workings of the Poisson process, just to name a few.
## Installation
You should have Rust downloaded, of course. Dependencies are managed by the Rust package manager, Cargo. Details can be found in the `Cargo.toml` file.Cloning the repo:
```sh
git clone https://github.com/eshan327/Poisson-Disk-Sequences.git
cd Poisson-Disk-Sequences
```
Install the [wasm-pack](https://github.com/rustwasm/wasm-pack):
```sh
cargo install
make build
```
Navigate to `www` and run:
```sh
cd ../www
npm run start
```
The visualization should be accessible through `http://localhost:8080`## License
This project is licensed under the MIT License. See the [LICENSE](https://github.com/eshan327/Poisson-Disk-Sequences/blob/main/LICENSE) file for details.