fast-wfc
wfc
fast-wfc | wfc | |
---|---|---|
2 | 8 | |
391 | 334 | |
- | - | |
0.0 | 0.0 | |
over 2 years ago | about 1 year ago | |
C++ | C | |
GNU General Public License v3.0 or later | - |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
fast-wfc
-
Procedural Map Generation: Wave Function Collapse library in C (plus a CLI tool)
I tried one time to make my own WFC implementation in C++, and it didn't work and I ended up using this, what references you used?, btw great job
-
WaveFunctionCollapse: Generates bitmaps that are locally similar to the input
I used this algorithm to generate minigolf courses [1].
I used this repo [2].
The algorithm is literally just a constraint solver. I'm pretty sure it's pretty similar to the sudoku solver I wrote in prolog for a university course.
It's kinda pretentiously named and described, probably because its more academic to do that. It's just a constraint solver.
1: https://twitter.com/00jknight/status/1249091532071645184
2: https://github.com/math-fehr/fast-wfc
wfc
- Wave Function Collapse library in pure C (plus a CLI tool)
-
Hacker News top posts: Jan 5, 2022
Wave Function Collapse library in pure C\ (37 comments)
-
Wave Function Collapse library in pure C
This is a typical idiom frequently seen in modern C and C++ codes. As https://github.com/krychu/wfc#how-to-use-the-library says, you need to define a macro in a C file in order to "expand" the actual code there.
Having the code in the header gives a bit more flexibility considering the file layout. IMHO this is an awkward consequence of the missing de-facto-standard in C/C++ build systems.
- Procedural Map Generation: Wave Function Collapse library in C (plus a CLI tool)
-
Ask HN: What are some tools / libraries you built yourself?
I recently wrote a single-file library in C for Wave Function Collapse: https://github.com/krychu/wfc
It’s a procgen algorithm that takes small image as input and generates a larger one with similar local features. I hope to add tiled method to the library some time.
- Show HN: Wave Function Collapse library in C, plus command-line tool
What are some alternatives?
DeBroglie - DeBroglie is a C# library implementing the Wave Function Collapse algorithm with support for additional non-local constraints, and other useful features.
kondo - Cleans dependencies and build artifacts from your projects.