Labs Wave Function Collapse

Wave Function Collapse is a procedural generation algorithm which produces images by arranging a collection of tiles according to rules about which tiles may be adjacent to each other tile, and relatively how frequently each tile should appear. (In-Depth Explanation https://www.gridbugs.org/wave-function-collapse/)

The WFC Initialize Grid tool is a convenient way of setting up a grid to be used as the sample or output grid for the WFC Solver node. It sets up the required attributes in the correct way for the solver.

The WFC Sample Paint tool allows you to interactively set values on a grid used by the WFC solver. It also sets up the required attributes in the correct way for the solver.
———
"Sci-Fi Modular Stack Asset Pack" by Owen Edwards
https://sketchfab.com/3d-models/sci-fi-modular-stack-asset-pack-7fc4125042e341a3a2aeb50b01b0eb2d

"Desert | Rock | (FIXED) Pack" by Erroratten
https://sketchfab.com/3d-models/desert-rock-fixed-pack-00c4468f1bca48509d7d2bd66b564cbc
———
For more information on SideFXLabs and how to get the tool visit: https://www.sidefx.com/products/sidefx-labs/.
HIP File: https://github.com/sideeffects/SideFXLabsExamples/tree/main/artstation/wave_function_collapse/wfc.zip
This post is prepared by Alecto Asperslag: https://www.artstation.com/alecto-marionette

Wave Function Collapse is an algorithm that will take a basic pattern and expand it to cover a larger area.

Create a base pattern from texture, manual selection, or using the WFC Sample Paint.

The WFC SOPs can be combined with the Wang Tiles Sample and Wang Tiles Decoder SOPs to distribute modular pieces.