Need help with fast-wfc?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

math-fehr
250 Stars 23 Forks Other 90 Commits 0 Opened issues

Description

An implementation of Wave Function Collapse with a focus on performance.

Services available

!
?

Need anything else?

Contributors list

# 245,250
C++
Shell
C
domain-...
81 commits
# 599,010
procedu...
wfc
C
SQL
2 commits
# 166,538
Rust
webasse...
ls
wfc
1 commit
# 74,860
Lua
Shell
minetes...
voxel-e...
1 commit
# 97,159
Keras
Jupyter...
captcha...
Rust
1 commit

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: * RapidXML https://github.com/dwd/rapidxml * stb Library https://github.com/nothings/stb

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.

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.