An open API service indexing awesome lists of open source software.

https://github.com/ttfh/wave-function-collapse

Wave Function Collapse is an algorithm for extending patters onto a larger grid.
https://github.com/ttfh/wave-function-collapse

procedural-generation wfc

Last synced: 13 days ago
JSON representation

Wave Function Collapse is an algorithm for extending patters onto a larger grid.

Awesome Lists containing this project

README

          

# Wave Function Collapse

### **Wave Function Collapse** is an algorithm for extending patters onto a larger grid.

It's inspired by quantum mechanics, a wave is initialized with each compatible pattern in an superposition state.
Upon observation, the region with the lowest Shannon entropy is selected based on a probability distribution.
The new information obtained from the collapse propagates through the wave.

## Bitmap generation


Bitmap generation

## Tilemap generation


Tilemap generation

## Spritemap generation*


Super Mario Bros
Minecraft


*example output, not actual generation

# Voxel generation*


Voxel generation


*example output, not yet implemented.