Finding Lat and Long of a point clicked on in Webgl Globe

1k Views Asked by At

I used the code listed as the answer in Get longitude and latitude from the Globe in WebGL

However, when I tried it, when I turn the globe over, even when I click the same point, I get different coordinate, and the longitude coordinate is almost always wrong.

I have no idea how to fix it without the globe being much more intelligent and somehow having recording what all rotations it has been through, or even keeping track of a particular longitude (Maybe the international date line) so that it can find out what the point's lat, long tuple is.

Any suggestions or ideas?

0

There are 0 best solutions below