How to create a mini map? Please give me a clue

D4N005H
D4N005H polycounter lvl 10
Hello.
My in-game city is huge (As big as Miami) So I need a mini-map and radar system just like the one in GTA IV or GTA V but I don't know where to start making them, Are there any asset that does so? Would be very happy if someone helps.

Welcome!

It looks like you're new here. Sign in or register to get started.

Replies

  • Eric Chadwick
    edited Mar 2017
    Start with a Google search.
    "mini map unity"

    Every single time, before I start a thread to ask how to do something, or how to solve a problem, I do some web searches first.
    http://polycount.com/discussion/63361/information-about-polycount-new-member-introductions/p1#asking
  • D4N005H
    D4N005H polycounter lvl 10
    edited Mar 2017
    Start with a Google search.
    "mini map unity"

    Every single time, before I start a thread to ask how to do something, or how to solve a problem, I do some web searches first.
    http://polycount.com/discussion/63361/information-about-polycount-new-member-introductions/p1#asking

    laforced said:
    Thank you for the replies. I did search, Mr.Chacdwick. But the one I want is not a simple "top down camera" system. I've searched the Net and only found simple mini-map systems (not even the GPS ones) - Even the one that laforced  posted here is a topdown camera one, I appreciate and thank him for the link though - however I've searched quickly so maybe I missed some good tutorial. So sorry if I kinda did anything wrong here. But I didn't find a system like the one that GTA V or GTA IV has. What I mean is, I want to make minimap and radar system that:

    1 - Uses SVG or something like the one that GTA IV or GTA V uses And is able to be streamed in RAM (since the whole map is too big to be stored in RAM at once)
    2 - Something to make a GPS system with.

    I hope I clarified the problem.
  • Obscura
    Obscura grand marshal polycounter
    edited Mar 2017
    First I was thinking about a scene capture/render target thing but for a world map, this would be very bad..


    The world map could be a print screen or rendered image of the world from an orthographic camera. 


    Then this could be your background texture on the map, and the markers/moving characters etc could be separated UI elements that are just positioned and drawn on top of the background.
  • Obscura
    Obscura grand marshal polycounter
    edited Mar 2017
    This is in Unreal, but I'm sure you can create something similar in Unity as well.

    So I made this thing to capture world map texture in the editor. In this example, the world is a landscape and we assume, the bounds of the landscape is the end of the level... I have a scene capture 2d, and a render target. The projection is set to ortographic, and the width is set to match the landscape dimension. Its also centered to landscape. Then I just draw it to a render target, and save it as a static texture. 



    This can be the background texture of your map/minimap. 
  • I asked you to do a search because you didn't indicate you had done it already. The information in your 2nd post is the kind of info that belongs in the 1st post.

    To do a GPS system, you will need pathfinding in your minimap.
  • Obscura
    Obscura grand marshal polycounter
    edited Mar 2017
    This is how I would do the icons/markers:

    - The minimap UI would have a container for the icons
    - A script, that can be added to anything, and it spawns an icon ui that attaches to the minimap, and sets its coordinates, based on the world coordinates of this object:



    Then, if it needs to move, we can have an update position function. I wouldn't update it on every frame...



    Result - script attached to some cubes:

    https://www.youtube.com/watch?v=UTMGP7evhlY&feature=youtu.be

    For the GTA style one, you will need to set the  minimap size bigger than the rendered minimap area, and offset it based on where the player is.


    Also, I would not recommend to use a dynamic scene capture and render target, because this works too and should be much cheaper.
  • Creating a GTA V like mini-map in Unity https://youtu.be/ktTegOCaffw

Welcome!

It looks like you're new here. Sign in or register to get started.