An implementation of Wave Function Collapse with a focus on performance. It was called fast-wfc because at the time it introduced optimizations improving the execution time by an order of magnitude.
You need a C++-17 compatible compiler, and CMake installed.
git clone https://github.com/math-fehr/fast-wfc && cd fast-wfc/
cmake .
make install
will install the library fastwfc
and fastwfc_static
using CMake:
cd example/
cmake .
make
./wfc_demo
will execute WFC on the examples defined in example/samples.xml
, and will put the results in example/results
.
The files in example/src/include/external/
come from:
- RapidXML https://github.com/dwd/rapidxml
- stb Library https://github.com/nothings/stb
The image samples come from https://github.com/mxgmn/WaveFunctionCollapse
Copyright (c) 2018-2019 Mathieu Fehr and Nathanaëlle Courant.
MIT License, see LICENSE
for further details.