Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Question Creating an "Infinite" Grand Strategy Map

Discussion in 'World Building' started by FranticDreamer, Nov 19, 2022.

  1. FranticDreamer

    FranticDreamer

    Joined:
    Aug 6, 2013
    Posts:
    1
    Hello. I was thinking about creating an RTS game and trying to find how to make a map for it.

    I was mainly inspired by Supreme Ruler 2020 and I started seeking other games to play so I could see how things are made.

    I first created a system based on Unity's Terrain, with a "heightmap" I created, which was basically a white silhouette of the land on black, and afterwards added a water plane.



    Then I encountered a problem. There's a game called Hearts of Iron 4, and it has a system like so:


    After checking how HOI4 handled things, I started wondering how can I achieve this smooth transition between two "seams" of the world. Rather than the camera transition, how the pathfinding system pass from one side to another.

    My ideas are:
    Creating the map as a cylinder (or a sphere)
    Pros:
    1: Pathfinding and "smooth transitive" rendering would be relatively easier
    Cons:
    1: Projection is an issue.
    2: How to create the map? (Mesh-based? Too expensive.)
    3: How to "divide" the map? (Like countries etc.)

    Cloning the map on the sides
    Pros:
    1: Basic, pretty easy to build.
    2: The camera transition problem is almost solved.
    Cons:
    1: Performance is a problem
    2: Teleportation between seams is still problematic

    Do you have any ideas for how can I achieve it?