Context-sensitive WFC

WaveFunctionCollapse (WFC) is a Procedural Content Generation algorithm which generates an output similar to some input. The input is broken into tiles or patterns which can be composed by the algorithm to create a new structures. A set of constraints extracted from the input are satisfied during the process which results in the similarity between the input and output. Context-sensitive WFC proposes a small and easy to implement modification to the WaveFunctionCollapse algorithm which significantly improves the quality fo results.

preview

This modification was proposed in the paper “Better Resemblance without Bigger Patterns: Making Context-sensitive Decisions in WFC” by Bahar Bateni, Isaac Karth and Adam Smith, published at FDG 2023. The paper proposes this modification, and reports its impact on the “resemblance” between the input and output and the expressive range of the algorithm.

Code Paper