procedural-gl-js icon indicating copy to clipboard operation
procedural-gl-js copied to clipboard

zooming out to globe level?

Open nickredmark opened this issue 4 years ago • 2 comments

Hey, this library is gorgeous! I was wondering whether it would be possible to zoom out to see the whole globe. What are the technical limitations there?

nickredmark avatar Dec 21 '20 08:12 nickredmark

This might have performance impacts. Unless some mesh simplifications are applied on zoom level. but i let the developer answer. i love this library so much already i'm checking it everyday! not a fan just passionate!

bardzh avatar Dec 24 '20 05:12 bardzh

Currently the library assumes for simplicity that the world is flat. Thus it would be possible to zoom out to see the whole world, but it would be a flat square not a globe.

My personal view is that while zooming from outer space onto a location makes for a neat demo then it isn't really of much practical use, as the wow factor of having a 3D map comes from actually seeing the shapes of the mountains etc.

To implement this I'd need to have an LOD system that would swap out the "flat-world" meshes for a globe at some view distance, but also apply some curvature to the "flat-world" to make transition seamless.

So, this is perhaps something I would consider implementing in the future, but right now it is not a priority.

felixpalmer avatar Dec 28 '20 12:12 felixpalmer