pandemonium_engine/modules/wfc
2022-04-24 17:46:14 +02:00
..
doc_classes
array_2d.h Fix wrong order of arguments. 2022-04-24 17:15:18 +02:00
array_3d.h
config.py
image_indexer.cpp Small optimization for image indexer. This also fixes pixel order. 2022-04-24 17:46:14 +02:00
image_indexer.h Improved the api / usability of the image indexer. 2022-04-24 11:19:03 +02:00
LICENSE
overlapping_wave_form_collapse.cpp Better error handling and fix potential crash in the overlapping WFC class. 2022-04-24 15:13:50 +02:00
overlapping_wave_form_collapse.h Lots of small fixes and improvements to the wfc module. It still has issues though. 2022-04-23 15:23:00 +02:00
README.md
register_types.cpp
register_types.h
SCsub
tiling_wave_form_collapse.cpp Actually set pattern frequencies in TilingWFC. This actually fixes the image generation problems. 2022-04-24 16:44:28 +02:00
tiling_wave_form_collapse.h Don't crash in TilingWFC due to the result containing bad indices. This will help with debugging. 2022-04-24 16:25:17 +02:00
wave_form_collapse.cpp Fix typo. 2022-04-24 01:37:16 +02:00
wave_form_collapse.h Lots of small fixes and improvements to the wfc module. It still has issues though. 2022-04-23 15:23:00 +02:00

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.