r/programmingrequests • • Dec 28 '24

Hexagon Wave Function Collapse with image output.

TL;DR: Need a program where I can point to a directory of images, a list of valid connections, and get it to output an image of set size using a hex grid.

Language: ANY

Hey folks,

I'm a tabletop RPG dev/GM and I'm looking to make a world map for my setting. The method/world I want to gen would work best using wave form collapse to place biomes next to each other given set rules. e.g. A sheer mountain could be beside lesser mountain types but not next to plains; have to taper off first after all.

The problem is; all existing wfc stuff I can get to work is either square grid and this needs to work with hexagons, or works only in a game engine and this needs to output an image. I don't want to play on this in some game window, I want just an outputted image.

I've tried programming this myself but roadblock after roadblock keeps throwing itself up and I just can't handle it. Help would be greatly appreciated.

And given the intent(hex grid, list valid biome connections, output as image), I assume other people in my position would appreciate it!

Language; doesn't matter. As long as I can point it to the images, an input file for valid connections, and an output size, I don't intend to touch your code at all.

3 Upvotes

9 comments sorted by

View all comments

Show parent comment

1

u/AutoModerator Dec 29 '24

Reminder, flair your post solved or not possible

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.