Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

i have a game that described a planet and is a sphere.

on the client side, the world is separated to tiles (images) and i mapped it follow by this and this, so now when the user is zooming / dragging the world he's see the right location follow by the middle-center geo coordinate and global pixel.

now, on my server side, i need to put data on my planet (in other words, to draw it on the tiles i mentioned above - but it's doesn't matter for this discussion).

i have array of data items with same dimensions (width/height) that should be populate on the planet. from my own understanding, i need to find the geo coordinate of each data-item and then use the function geoToGlobalPX() to get it's location against the whole 2d planet's map, and finally 'put' it on the planet.

my problem is to find this geo coordinate, since i can't run over the planet from pixel(0, 0) to pixel(PLANET_SIZE, PLANET_SIZE) and each iteration grow the current-position in item-data-width because the range of location is decreasing as much you're going up/down from the equator, so on the top latitude (~85) i'll have more less data-items than on the equator.

i tried to read on the articles above about meters-per-pixel but i still don't really understood how i can integrate it on my system.

i hope you understood my and someone will have some advice for me.



share|improve this question

You are trying to render 2D tiles to a 3D globe?.

I would look into XNavigator is an interactive 3D viewer and integrated client for exploring virtual city and landscape model

Open Street Map are using this to render their tiles on the globe and in 3D (zoomed in)

Have a look at it might be a good starting point for your application.

They are using B64

Context document encoded in Base64 binary format. The context describes the client configuration, including definition and selection of layers, service URLs (W3DS, Geocoder, Route Service, WMS, EQS etc.), definition of viewpoint parameters, navigation mode, lighting settings, and much more. The context can be created using the XNavigator Webstart, Create Applet menu.

enter image description here

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.