-
Notifications
You must be signed in to change notification settings - Fork 118
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Project mercator tiles on to sphere #74
Comments
I took a look at the Cesium viewer (which I'm trying not to use, because I want to keep using three), and according to the network traffic, it's loading in the same tiles from Bing. That is to say the tiles are for the web mercator projection, and the application is warping them to fit the sphere. It is also my understanding that Google Earth more or less does the same thing. I'm going to check out the Cesium source code a bit and see how what's going on underneath. Will let you know what I find. |
In case anyone is curious, the place they do that in Cesium, while spread across multiple files, I would say for the most part happens here (they describe the calculation in comments here at least): https://github.com/CesiumGS/cesium/blob/cbd13cee0959d2de6e01f355dd1cd73342467102/packages/engine/Source/Scene/ImageryLayer.js#L1506 |
I got it :) Things are looking pretty good even at high zooms, although a small border is still visible at those levels. Here's a video of the LOD adjusting while zooming in (although not as nicely as possible). There's also a visible seam at the international date line still. I'm hoping this is good enough for a PR, so I'm going to clean everything, make a fork, and open one up. |
Hello Wow, you have done an impressive ammount of work here 👍 Will be more than happy to help you finishing and merging this code into the library. This was something that was discarded on the first version because of tile fit, the way sampling is done this way seems to work nicely. |
Hello! |
Hi, thanks for this great project.
Since mercator projected tiles don't map on to the sphere, I was wondering if you could recommend a tileset that is warped to fit on to it?
The text was updated successfully, but these errors were encountered: