Skip to content

Latest commit

 

History

History
30 lines (24 loc) · 1.26 KB

File metadata and controls

30 lines (24 loc) · 1.26 KB

Wave Function Collapse

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.