Bitmap Tile-Generation inspired by Quantum Mechanics

Cool Tile-Generation inspired by Quantum Mechanics: Wave Function Collapse.

687474703a2f2f692e696d6775722e636f6d2f67317947764c372e706e67

Local similarity means that

  • (C1) Each NxN pattern of pixels in the output should occur at least once in the input.
  • (Weak C2) Distribution of NxN patterns in the input should be similar to the distribution of NxN patterns over a sufficiently large number of outputs. In other words, probability to meet a particular pattern in the output should be close to the density of such patterns in the input.
    In our examples typical value of N is 3.

687474703a2f2f692e696d6775722e636f6d2f4b554c475838362e706e67

WFC initializes output bitmap in a completely unobserved state, where each pixel value is in superposition of colors of the input bitmap (so if the input was black & white then the unobserved states are shown in different shades of grey). The coefficients in these superpositions are real numbers, not complex numbers, so it doesn't do the actual quantum mechanics, but it was inspired by QM.

Also does its thing in 3D:

p5kwwcr

These voxel models were generated with N=2 overlapping tiled model using 5x5x5 and 5x5x2 blocks and additional heuristics.

cgakp4e

687474703a2f2f692e696d6775722e636f6d2f456e426b63564e2e706e67

687474703a2f2f692e696d6775722e636f6d2f795948624d78382e706e67

687474703a2f2f692e696d6775722e636f6d2f4e64326d514f432e706e67

687474703a2f2f692e696d6775722e636f6d2f726538574275642e706e67