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!
You are not logged in. Please login or register.
Infinity Code Forum → Online Maps Help → 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!
Hello.
For example in this way:
http://forum.infinity-code.com/viewtopi … 2749#p2749
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?
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.
Infinity Code Forum → Online Maps Help → How to make rounded map?
Powered by PunBB, supported by Informer Technologies, Inc.