Go to file
Relintai c3a2a5316a Add temporary warning, that the generation can fail. 2022-04-24 17:51:38 +02:00
original_examples Proper test project setup. 2022-04-24 03:02:23 +02:00
project Add temporary warning, that the generation can fail. 2022-04-24 17:51:38 +02:00
.gitignore Initial commit. 2022-04-22 20:23:33 +02:00
HEADS Initial commit. 2022-04-22 20:23:33 +02:00
LICENSE Initial commit. 2022-04-22 20:23:33 +02:00
Makefile Initial commit. 2022-04-22 20:23:33 +02:00
README.md Initial commit. 2022-04-22 20:23:33 +02:00
SConstruct Initial commit. 2022-04-22 20:23:33 +02:00
build.config.example Initial commit. 2022-04-22 20:23:33 +02:00
editor.bat Initial commit. 2022-04-22 20:23:33 +02:00
editor.sh Initial commit. 2022-04-22 20:23:33 +02:00
ged.sh Initial commit. 2022-04-22 20:23:33 +02:00
lged.sh Initial commit. 2022-04-22 20:23:33 +02:00
module_config.py Initial commit. 2022-04-22 20:23:33 +02:00

README.md

fast-wfc

https://github.com/math-fehr/fast-wfc

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.

Rust bindings

Requirements

You need a C++-17 compatible compiler, and CMake installed.

Install the library

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:

Run the examples

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.

Third-parties library

The files in example/src/include/external/ come from:

Image samples

The image samples come from https://github.com/mxgmn/WaveFunctionCollapse

Licence

Copyright (c) 2018-2019 Mathieu Fehr and Nathanaël Courant.

MIT License, see LICENSE for further details.