Search Unity

How to create a large open map from smaller pieces

Discussion in 'Scripting' started by Primoz56, Aug 22, 2021.

  1. Primoz56

    Primoz56

    Joined:
    May 9, 2018
    Posts:
    369
    Hi all,

    So i'm thinking of making my exploration map modular, where instead of one large map, i would have smaller parts of the map connected seamlessly to other smaller parts. The parts would come in shapes (eg I, L, +, Y) and then be rotated and connected to each other that fits certain matching criteria. These are all 3D terrains if it matters.

    Would anyone know of any good tutorials/examples of how this can be done/scoped out easily?

    I think it would be very wierd for very open maps, like a desert - how would i deal with those?

    Thanks for any input,
    Primoz
     
  2. Kurt-Dekker

    Kurt-Dekker

    Joined:
    Mar 16, 2013
    Posts:
    38,745
    Usually tiled maps are done with rectangular or square chunks.

    You could do odd-shaped pieces... this dungeon generator (not mine; I forked it) does so:

    https://github.com/kurtdekker/3d-dungeons-with-procedural-recipes

    Definitely google around for procgen stuff. There's scads of interesting Youtube videos you can get ideas, tips, pointers, discussions about the topic.