question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Art: WFC/Wave function collapse city

See original GitHub issue

https://github.com/marian42/wavefunctioncollapse

This is a good Unity repo + codebase for procedurally generating cities, better than what I had planned. It essentially uses a set of prefabs to glue together a cityscape based on fills and heuristics.

img

The actual blocks FBX is here: https://github.com/marian42/wavefunctioncollapse/blob/master/Assets/blocks.fbx

image

We can use this to fill the need to have a city in Zone 0, meeting the last requirement for the trailer.

The work involved is:

  • create a more solarpunk set of prefab blocks, by editing the existing blocks.fbx; we might also want to create the textures at this stage
  • update the algorithm to increase height a bit
  • generate a bake
  • fix textures (if needed) and and edges to create the final city model

Inspiration

solarpunk

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:2
  • Comments:37 (35 by maintainers)

github_iconTop GitHub Comments

3reactions
marian42commented, Jul 18, 2021

Hello, I hope you don’t mind me commenting here!

Some thoughts on the current blocks:

  • I’ve started to put them in multiple files, that makes them easier to edit and it works better with version control. I use one file for roof blocks, one for interior blocks, etc
  • The scale is a bit off, the blocks are 2 meters in size, but I think it would work better if they were scaled to 4 meters. Just keep in mind that you might need to scale them up at some point if you want to put regular sized humans into the map. And I think the railings are too tall relatively, so they might need to be scaled down.
  • You can add your own blocks and set up data for them, this requires no code. It’s totally feasible to add a new type of roof that lets light shine into interiors. Just keep in mind that there isn’t necesarily an interior block behind every wall/roof, so I’d make variants of that new roof that can and cannot let light through. And of course you need a matching interior block that connects to the new roof.

Really looking forward to seeing progress on this, I love that you chose Solarpunk as the theme!

2reactions
GaladWardercommented, Jul 30, 2021

☝️ Whoa, what’s that?

It looks like it’s neural.

It’s the WIP I put in the Discord from yesterday - used deepdream to transfer the style quickly then I’m overpainting on top

Read more comments on GitHub >

github_iconTop Results From Across the Web

Infinite procedurally generated city with the Wave Function ...
This is a game where you walk through an infinite city that is procedurally generated as you walk. It is generated from a...
Read more >
Wave Function Collapse City - ArtStation
At its core, it uses the Wave Function Collapse Algorithm to generate a Columbian-inspired city. First, the Border and Rivers are generated.
Read more >
Using the Wave Function Collapse Algorithm for Infinite ...
Have a look at the concept of a game by Marian where users walk through an infinite city that is procedurally generated as...
Read more >
Wave Function Collapse 3D: Procedurally Generated City ...
This 3D implementation of Wave Function Collapse algorithm by Marian42 creates an infinite, procedurally generated city, assembled out of ...
Read more >
Generating Worlds With Wave Function Collapse - PROCJAM
Wave Function Collapse (WFC) by @exutumno is a new algorithm that can generate procedural patterns from a sample image. It's especially exciting for...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found