https://github.com/relintai/wfc_module_samples
https://github.com/relintai/wfc_module_samples
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/relintai/wfc_module_samples
- Owner: Relintai
- License: mit
- Created: 2022-04-22T18:23:20.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2022-04-24T15:51:40.000Z (about 4 years ago)
- Last Synced: 2025-02-10T13:14:06.307Z (over 1 year ago)
- Language: Python
- Size: 645 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# fast-wfc
https://github.com/math-fehr/fast-wfc
An implementation of [Wave Function Collapse](https://github.com/mxgmn/WaveFunctionCollapse) 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](https://github.com/rickyhan/fastwfc-rs)
# 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:
* RapidXML [https://github.com/dwd/rapidxml](https://github.com/dwd/rapidxml)
* stb Library [https://github.com/nothings/stb](https://github.com/nothings/stb)
# Image samples
The image samples come from [https://github.com/mxgmn/WaveFunctionCollapse](https://github.com/mxgmn/WaveFunctionCollapse)
# Licence
Copyright (c) 2018-2019 Mathieu Fehr and Nathanaël Courant.
MIT License, see `LICENSE` for further details.