Search Unity

Question Mapbox and camera orbit

Discussion in 'World Building' started by Artpen, Aug 28, 2021.

  1. Artpen

    Artpen

    Joined:
    Jan 24, 2015
    Posts:
    291
    Hey guys,

    I am trying to get mapbox map into the game.
    I have perspective camera and ability to orbit.
    I have set mapbox map view to camera bounds ant it works.
    The problem I have is when I orbit the camera and I start to see a horizon mapbox creates too many tiles into the distance and Unity crashes.

    What are the ways to solve this?
    I know I can limit the extent of mapbox map but I want to get a sense of horizon, similar to mapbox on the web.
     
  2. Artpen

    Artpen

    Joined:
    Jan 24, 2015
    Posts:
    291
    So Mapbox studio you can add fog. I think I can do the same and just limit the amount of generated tiles?
    If anyone had an experience with this, please let my know.
    Image basically shows what I am trying to get..
    Screenshot 2021-08-28 at 09.25.01.png Screenshot 2021-08-28 at 09.24.43.png