Fantasy Map Generator

December 2022

Fantasy Map GIF

Description: A procedural fantasy map generator inspired by hand-drawn maps from fictional worlds. Our tool uses Wave Function Collapse to dynamically generate maps based on artist input. It also uses several shading and procedural generation techniques to stylize the look and scatter assets such as trees and mountains across the landscape. Below are two examples of a map that an artist can generate, including one where we spelled out “CGGT” (the name of our master’s program):

Standard Fantasy Map

CGGT Fantasy Map

See our Github for full technical and implementation details. You can also try our Unity 3D web demo or see our slide deck for more images.

Teammates: Nick Moon and Sakshi Rathore

Features:

  • Procedurally generates maps based on artist-provided seeds (tiles)
  • 2D hexagonal Wave Function Collapse for map generation
  • Non-photorealistic rendering of assets to create looks such as cross-hatching, faded paper, and outlines

My Contributions:

  • Creating non-photorealistic rendering shaders for the fantasy map look
    • Color pass - map Wave Function Collapse output to correct feature color
    • Asset pass - scatter assets in designated areas
    • Outline pass - draw outlines around each feature
  • Coastline hatching - combine horizontal lines with Sobel/FBM mask to create cross-hatching effects at the boundary of land/water