WF

WFCLab – Interactive Wave Function Collapse Explorer (With Source)

Hacker News

WFCLab – Interactive Wave Function Collapse Explorer (With Source)

Author here. WFCLab is a desktop app I built in Godot 4 for experimenting with example-based procedural generation, specifically wave function collapse. The workflow is: load a source image, decompose it into tiles and constraints, review the resulting tile set and constraints and make a limited set of changes, then run synthesis to generate new layouts that follow the same local rules without copying the original. Some context on why I built it this way: Most WFC implementations I found were either libraries you call from code or one-shot scripts that take an image and print an output. I wanted something where the intermediate steps were visible, so I could examine them and mess around with them. Thus, when synthesis fails or produces garbage, you can go looking for the cause and mess around with the settings until you figure it out, and can better track down the source instead of leaving it hidden away inside a huge function. So WFCLab exposes each stage as a separate view you can inspect and tweak. Current state: the full pipeline works end to end, and there are sample images and saved projects in the repo so you can try it without your own art. It is very much a work in progress. The UI is functional rather than polished, and I have not tested it on a wide range of source images. Known limitations: - Performance drops on large output sizes, especially with backtracking enabled - Constraint editing is list-based, not a visual graph editor yet - Only 4-way and 8-way adjacency, no custom direction sets - No built in image editing at all. - Can't actually export output images yet. Is anyone interested in this? Should I dedicate additional effort to developing it, or focus my efforts elsewhere? If you have used WFC before, what would you want to be able to control or inspect that this does not expose?

Share card

Actual performance

1points
Did not reach leaderboard

Launch Intel predictions

Analyze your own launch →
Product HuntOn track for Day 1 leaderboard · Strong signals: new, context, visual · Missing: mac, agents, macos
93%93% predicted probability of success on Product Hunt, based on ML models trained on real launch data.
best fitHighest predicted score across all platforms for this description.
Indie HackersFits the IH revenue-focused audience · Strong signals: para · Missing: supports, reddit linkedin, podcasting
78%78% predicted probability of success on Indie Hackers, based on ML models trained on real launch data.
Hacker NewsStrong engagement from HN community · Strong signals: ide, pipe, io · Missing: https docs, excited, just released
60%60% predicted probability of success on Hacker News, based on ML models trained on real launch data.
nativeThis product was originally launched on this platform.
TrustMRRLess likely to generate early MRR · Strong signals: way, para · Missing: mobile apps, ios, personal
45%45% predicted probability of success on TrustMRR, based on ML models trained on real launch data.
AppSumoMay struggle as an AppSumo deal · Missing: plus, platform, intuitive
41%41% predicted probability of success on AppSumo, based on ML models trained on real launch data.
Acquire.comPre-revenue stage for this audience · Strong signals: active · Missing: arr, mrr, revenue
13%13% predicted probability of success on Acquire.com, based on ML models trained on real launch data.
BetaListMay not resonate with beta-testers · Missing: web3, chat, crypto
0%0% predicted probability of success on BetaList, based on ML models trained on real launch data.

Incorrect prediction on native model

Similar products

Si
Simple Wave Function Collapse51%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Simple Wave Function Collapse

Hacker News43
Wa
Wave function collapse algorithm53%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Wave function collapse algorithm

Hacker News1,226
A
A dense NYT-style crossword constructor using wave function collapse48%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

A dense NYT-style crossword constructor using wave function collapse

Hacker News2
Co
Coati – The Source Explorer40%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Coati – The Source Explorer

Hacker News15
A
A simplified Wave Function Collapse algorithm51%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

A simplified Wave Function Collapse algorithm

Hacker News2
A
A simplified Wave Function Collapse algorithm (part 2)51%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

A simplified Wave Function Collapse algorithm (part 2)

Hacker News5
Us
Using Wave Function Collapse on a 2D map62%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Using Wave Function Collapse on a 2D map

Hacker News1
Te
TensorFlowithInception as an OpenFaaS function34%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

TensorFlowithInception as an OpenFaaS function

Hacker News4
Te
TensorFlow ImageNet/Inception as an OpenFaaS function48%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

TensorFlow ImageNet/Inception as an OpenFaaS function

Hacker News4
We
Weighted Scoring Function for CodersBracket32%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Weighted Scoring Function for CodersBracket

Hacker News1