Globe with countries as points

I need to generate a similar globe like stripe or github have on their home page.

I would like to make it from scratch and don’t use a library like globe.gl, but I’m open to suggestions.

Thanks!

@Federico_Toledo

Suggestion: pick some equirectangular map of continents, scan it with some step (e.g. each 4th pixel) and use Canvas2D to check whether this pixel corresponds to a continent. If yes, then use pixel’s coordinates as angles of spherical coordinates, convert to Cartesian and … this will give you the 3D coordinates of the point on the globe.

– Pavel

For some ideas:

2 Likes