Search Unity

  1. We are migrating the Unity Forums to Unity Discussions. On July 12, the Unity Forums will become read-only.

    Please, do not make any changes to your username or email addresses at id.unity.com during this transition time.

    It's still possible to reply to existing private message conversations during the migration, but any new replies you post will be missing after the main migration is complete. We'll do our best to migrate these messages in a follow-up step.

    On July 15, Unity Discussions will become read-only until July 18, when the new design and the migrated forum contents will go live.


    Read our full announcement for more information and let us know if you have any questions.

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?