Рет қаралды 21,407
Check out this impressive implementation of the wave function collapse algorithm in Unity by marian42 @ marian42.de/
Wikipedia: In quantum mechanics, wave function collapse is said to occur when a wave function-initially in a superposition of several eigenstates-appears to reduce to a single eigenstate due to interaction with the external world; this is called an "observation".
Marian42: The algorithm chooses which modules to select for each slot in the world. The array of slots is considerd a wave function in an unobserved state. That means that each slot has a set of possible modules that could be put there. In the language of quantum mechanics, one could say “The slot is in superposition of all modules”. The world starts in a completely unobserved state where every module is possible in any slot. One by one, each slot is collapsed. That means, one module from the set of possible modules is selected at random.
Project homepage on Itch.io - marian42.itch.io/wfc
Project blog article - marian42.de/article/wfc/
Project Github source - github.com/marian42/wavefunct...
Github WFC algorithm source - github.com/mxgmn/WaveFunction...
en.wikipedia.org/wiki/Wave_fu...