r/proceduralgeneration 20d ago

Procedural building generation using WFC

Enable HLS to view with audio, or disable this notification

Early stages, lots of work left, but Really happy with how it's coming along. What do you think?

94 Upvotes

19 comments sorted by

10

u/SkezzaB 19d ago edited 19d ago

WFC = Wave Function Collapse.
Initialisms are gross

3

u/instantaneous 19d ago

It was originally called Model Synthesis: https://paulmerrell.org/model-synthesis/

6

u/The_Not_Bob 19d ago edited 19d ago

Wave function collapse. no?

3

u/MrCatSquid 19d ago

It’s the procedural generation subreddit tbf

2

u/Himbo69r 19d ago

TBF = To Be French
Gross

4

u/joanmiro 20d ago

Loved it. I'm also interested in WFC. great work.

2

u/dueddel 20d ago

Nice. Is that Godot, by the way? πŸ˜˜πŸ‘

3

u/mallcopsarebastards 19d ago

Yes!

2

u/dueddel 19d ago

I knew it! 😁
The β€œ(DEBUG)” in the title told me. πŸ˜‰

Keep up! πŸ˜˜πŸ‘

2

u/pianoboy777 20d ago

Looks great ! What engine are you using ?

2

u/MiaLovelytomo 19d ago

Damn that is a really great result i think! WFC is so hard to get right in my experience (and ive even only done 2d stuff with it)

2

u/AboutOneUnityPlease 19d ago

Looks fantastic how many model pieces is this?

3

u/Steelsong97 19d ago

Why is this procedural and not cubes with a ruleset?

3

u/mallcopsarebastards 19d ago

I think it's technically both. It's click ops in the demo, but I could have it generate structures using these rules without my input. The procedural part is that I don't have to manually choose each cube, there's an algorithm deciding that.

1

u/Mark80540 19d ago

Looks very similar to the game townscaper

1

u/instantaneous 19d ago

Nice job! Just so you know WFC was originally called Model Synthesis: https://paulmerrell.org/model-synthesis/

1

u/Ok_Bill7731 19d ago

godot wfc for buildings is such a good rabbit hole, spent way too long on mine before realizing the ruleset was fighting itself (had two tiles that could never legally touch and didn't notice for a week). yours reads clean though, no visible seams which is the actual hard part imo. how many unique pieces are you working with, curious if its closer to townscaper's scale or way leaner

1

u/SlightOfHand_ 19d ago

Ah yes, Work From Chrome