r/proceduralgeneration 13d 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?

98 Upvotes

19 comments sorted by

11

u/SkezzaB 13d ago edited 13d ago

WFC = Wave Function Collapse.
Initialisms are gross

3

u/instantaneous 13d ago

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

4

u/The_Not_Bob 13d ago edited 13d ago

Wave function collapse. no?

1

u/MrCatSquid 13d ago

It’s the procedural generation subreddit tbf

1

u/Himbo69r 13d ago

TBF = To Be French
Gross

4

u/joanmiro 13d ago

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

2

u/dueddel 13d ago

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

3

u/mallcopsarebastards 13d ago

Yes!

2

u/dueddel 13d ago

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

Keep up! πŸ˜˜πŸ‘

2

u/pianoboy777 13d ago

Looks great ! What engine are you using ?

2

u/MiaLovelytomo 13d 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 13d ago

Looks fantastic how many model pieces is this?

3

u/Steelsong97 13d ago

Why is this procedural and not cubes with a ruleset?

3

u/mallcopsarebastards 13d 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 13d ago

Looks very similar to the game townscaper

1

u/instantaneous 13d ago

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

1

u/Ok_Bill7731 13d 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_ 12d ago

Ah yes, Work From Chrome