Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

3D Sphere Map of Earth | Separated Countries

Discussion in 'World Building' started by patilanz17, Apr 22, 2019.

  1. patilanz17

    patilanz17

    Joined:
    Apr 11, 2019
    Posts:
    4
    Hello,
    I am trying to create an interactive Earth with countries mapped by geojson format.
    I need to:
    • Rotate, Zoom | Done
    • Create an object for every Country with mesh created by points of geojson (or any other format). If the mesh of the countries are just imported and not created in runtime is better
    • Every Country object have to be placed in a sphere, bended so they have to look as a part of the sphere (This is the biggest problem)
    • Click interaction in Countries (After creating the above does not seem a problem)
    • The rest of the spot should be water (After creating the above does not seem a problem)
    I have found some examples of creating a mesh with topojson but they are plane and are done in runtime.
    Also I know I can use a texture with different colors for every country to detect click but I want a mesh so i can create effects.

    Can someone help me with examples or links please? I don't even know what I should learn.

    Thank You!
     
  2. patilanz17

    patilanz17

    Joined:
    Apr 11, 2019
    Posts:
    4
    I managed to create an object for every Country using Maya and geojson coordinates. I created a python script that generated faces for every country. Then i extruded all faces.

    Result:
    https://imgur.com/a/JUogaoG

    If someone know how to bend that objects to create a sphere I will appreciate it.

    Thank you


     
  3. unity_JhFZGVvxkZPtfQ

    unity_JhFZGVvxkZPtfQ

    Joined:
    Mar 10, 2020
    Posts:
    1
    Hello Sir Can i ask you something. I wanna create an interactive Earth with countries mapped by geojson format with Countries flags. Can we work together?