Skip to content

Road Generators

adhocmaster edited this page May 12, 2021 · 26 revisions

WFC-based generators

Steps

  1. Create some intersections
  2. Convert intersection to Direction Intersections by identifying incident roads in direction quadrants (top is North, left is West, bot is South, right is East)
  3. Create a grid and cells of it.
  4. Apply WFC to fill cells with Direction Intersections
  5. Get Direction Intersection positions based on the cell placement.
  6. Adjust the original intersections' positions based on their direction counterparts' positions.
  7. Connect incident roads based on their placement on direction quadrant
Clone this wiki locally