B
B
Bohdan Stadnyk2015-12-28 19:19:01
Game development
Bohdan Stadnyk, 2015-12-28 19:19:01

How to draw arbitrary shapes in unity3d?

Good day.
Straight to the point.
Given:
* json file with geo-data of countries Needed
:
* Draw a map in Unity3d
I dug into the documentation for the unit and found a GL library , tell me if it is suitable for solving this problem or maybe someone will advise a different approach, toolkit.
Thanks in advance.
PS an example of a map that I would like to get as a result of 2D

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Daniil Basmanov, 2015-12-29
@Humble_Beck

With GL you can draw lines, but GL.LINES for example doesn't allow you to change the thickness of the line, you have to fiddle around with GL.QUADS to do that . Highlighting with GL will also be difficult to do.
Judging by the sources of the World Political Map, they use meshes triangulated from a set of coordinates, on which special shaders are hung. The approach with meshes and shaders is more flexible and easier, you can integrate the triangulator in the same way, build the mesh, and then draw the contours. But if I were you, I'd rather buy the plugin right away, because otherwise you'll be busy for several weeks, and the result will be worse than for the five thousand that the plugin costs.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question