1 (edited by Rumata 2017-09-17 21:10:28)

Topic: How to make rounded map?

How is it possible to make the shape of the map rounded rather than square? Just a flat circle instead of a flat square?
Thank you!

Re: How to make rounded map?

Hello.

For example in this way:
http://forum.infinity-code.com/viewtopi … 2749#p2749

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-20 15:21:09)

Re: How to make rounded map?

Thank you very much, Alex Vertax, this is a great code example!
But there are a few strange moments:

1. The Markers can be moved pretty far away from the map before they will disappear.
A solution I have in mind is to create a custom 3D collider around and disable the markers on the trigger enter. Maybe there is also a better solution?

2. The image on the map surface is distorting when we move the map. The closer to the border of the map, the more obvious the distortion. Is it unavoidable? If I created a 3D сircle model, would it be possible to use it as the basis for a 3D map and thus avoid this distortion?

Re: How to make rounded map?

I gave you the right way here:
http://forum.infinity-code.com/viewtopi … 2831#p2831

About strange moments:
1. This script does not take into account many things: markers, tooltips, collider, hit testing, etc.
It is designed to make a map as in the screenshot in post 1 (map + elevation + buildings).
This can be easily improved so that the script works correctly with these moments too.

2. Yes, I mentioned this below the script.
Here need to slightly change the generation of UV.
This is not visible on the map with elevation, so I just did not waste time.
But it's quite easy to fix this.

Kind Regards,
Infinity Code Team.

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