Wavefunction Collapse

One of the reasons for brooming my editor project was because I wanted to use it to visualise some tests with procedural generation. I’ve just finished a basic implementation of wavefunction collapse (specifically the python port using numpy that you can find here) and have wrapped it with a plugin so I can resolve the collapsed wave using models and prefabs (in this case a wonderful set of free sci-fi tiles that you can check out here).

The results aren’t incredible at the moment - this is mainly because writing out constraints for every single tile tends to be a very dull process - so I don’t expect anyone to consider this a playable level for anything unless they squint. Still it’s a fun toy to play with.



7 Likes