vasturiano / three-geojson-geometry

ThreeJS geometry to stroke GeoJSON objects on a sphere
https://vasturiano.github.io/three-geojson-geometry/example/countries/
MIT License
60 stars 15 forks source link

Example for mesh geometry based on geojson #13

Open overshom opened 1 week ago

overshom commented 1 week ago

Request for example.

Please provide example where we can use GeoJSON to render countries as filled polygons, not only contour lines.

I want to see how we can fill every country with different color.

I assume we should triangulate line geometries somehow, maybe even "earcut" which is already a dependency here can do that. I tried some experiments myself but don't have enough knowledge to complete it.

So, eventually I want to understand how using this library we can render "realistic Earth globe" with shaders for oceans, land etc.

P.S. thank you for cool library

overshom commented 1 week ago

I have found your other library for that - https://github.com/vasturiano/three-conic-polygon-geometry

Will be good to have references right into README of both libs :)