Skip to content

TTFH/Wave-Function-Collapse

Repository files navigation

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.

About

An algorithm for extending patters onto a larger grid.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages