1 (edited by Rumata 2017-09-12 21:59:53)

Topic: Best way to turn 2D Map into 3D Map?

What is the best way to turn flat 2D Map into 3D Map?
How can I turn on/off 3D buildings?

Thank you!

Re: Best way to turn 2D Map into 3D Map?

Unfortunately, I did not understand your question.
Please ask your question in more detail.

Enable/disable Online Maps Buildings component.

Kind Regards,
Infinity Code Team.

Boost your productivity a lot and immediately using Ultimate Editor Enhancer. Trial and non-commerce versions available.

3 (edited by Rumata 2017-09-12 23:41:46)

Re: Best way to turn 2D Map into 3D Map?

Sorry for confusing, Is it possible to recreate the unevenness of the Earth's surface as a 3D object, and project the map texture on it, instead of a flat plane?
In the video example on the Infinity Code site, it can be turned on by "elevation" button on the custom UI which I don't use in my case.

Re: Best way to turn 2D Map into 3D Map?

https://thumb.ibb.co/kLUouF/Screen_Shot_2017_09_13_at_2_38_33_AM.png

Re: Best way to turn 2D Map into 3D Map?

Online Maps Tileset Control / Use Elevation - ON
and specify your Bing Maps API key.

Kind Regards,
Infinity Code Team.

Boost your productivity a lot and immediately using Ultimate Editor Enhancer. Trial and non-commerce versions available.

6 (edited by Rumata 2017-09-13 12:22:25)

Re: Best way to turn 2D Map into 3D Map?

Thank you very much!
But what if initially it was a 2D map, which doesn't have Online Maps Tileset Control component, can I add it to the 2D map?
Or is there a way to transfer already created 3D markers from 2D map on 3D map?

Re: Best way to turn 2D Map into 3D Map?

2D map with 3D markers?
Most likely you have confused something, because it is simply impossible.
Please attach a screenshot of Online Maps and used control.

A scene from the video, about which you write in the post 3 and 4, is in «Assets / Infinity Code / Online Maps / Examples / Scenes / Demo».

Kind Regards,
Infinity Code Team.

Boost your productivity a lot and immediately using Ultimate Editor Enhancer. Trial and non-commerce versions available.

Re: Best way to turn 2D Map into 3D Map?

Thank you,
Please, click on the preview to see the full image.

Here is the list of the components of the 3D map I just created:

https://thumb.ibb.co/dHLcoa/Screen_Shot_2017_09_13_at_10_25_25_PM.png

3D Markers here can be found in the "Online Maps Tile Set Control" component (along with many other features):

https://thumb.ibb.co/eRrBEF/Screen_Shot_2017_09_13_at_10_25_40_PM.png

---

Hereis the components of the map I used before:

https://thumb.ibb.co/mw8Noa/Screen_Shot_2017_09_13_at_10_26_18_PM.png

As You can see 3D markers are located in the "Online Maps Txture Control" component:

https://thumb.ibb.co/eBu1gv/Screen_Shot_2017_09_13_at_10_26_58_PM.png

I don't want to replace the "Online Maps Tile Set Control" component on the new map with the "Online Maps Texture Control" component from the old map, since it has much fewer features and functions.
Is there any way to transfer 3D markers from one map to another in such case?

Re: Best way to turn 2D Map into 3D Map?

Online Maps Texture Control is a 3D map.
But actually it does not matter already.

You can transfer 3D markers in this way:
1. Add this example to save the state of 3D markers to the map in the scene 1.
http://infinity-code.com/atlas/online-m … ample.html
If the markers have different prefabs, you need to modify the script and save "marker.prefab.GetInstanceID ();".
2. Start the scene and click "Save markers".
3. Open a scene 2.
4. Add this script to the map.
5. Start the scene.
6. Save the state of the map using Online Maps inspector.
7. Stop the scene 2.

It's all. You transfer the 3D markers to another scene.
Note: To get objects by Instance ID, use EditorUtility.InstanceIDToObject.

Theoretically (not tested, but should work), it is possible to use another trick here:
1. Create a copy of your project.
2. Open the original and a copy of the project in the Unity Editor (two instances of the editor are running simultaneously).
3. Open both scenes in different editors.
4. Save the marker status in scene 1 using Online Maps inspector.
5. Stop the scene 2.
6. Stop the scene 1.

In this case, the settings (3D markers) from scene 1 will be restored in scene 2.

Kind Regards,
Infinity Code Team.

Boost your productivity a lot and immediately using Ultimate Editor Enhancer. Trial and non-commerce versions available.