Wave Function Collapse overlapping model implementation in Rust. Generates novel images by extracting NxN patterns from samples and synthesizing outputs that follow the same adjacency constraints.
The overlapping model extracts all NxN pattern tiles from a sample image and records which patterns can appear adjacent to each other. Starting from a completely undetermined output, it iteratively:
cargo run --release --bin wfc-egui

Let's see how edge constraints affect the output.
Sample:
| Without constraints | Vertical constraints | Vertical + Sides constraints |
|---|---|---|
![]() | ![]() | ![]() |
MIT
28 commits
Rust
97.8%
Just
1.4%
Wave Function Collapse overlapping model implementation in Rust. Generates novel images by extracting NxN patterns from samples and synthesizing outputs that follow the same adjacency constraints.
The overlapping model extracts all NxN pattern tiles from a sample image and records which patterns can appear adjacent to each other. Starting from a completely undetermined output, it iteratively:
cargo run --release --bin wfc-egui

Let's see how edge constraints affect the output.
Sample:
| Without constraints | Vertical constraints | Vertical + Sides constraints |
|---|---|---|
![]() | ![]() | ![]() |
MIT
28 commits
Rust
97.8%
Just
1.4%