As part of my game I need an interactive world map. I have the boundary data in a shapefile format and I can easily extract the coordinates if needed. Now I have a choice between making the polygons 2D or 3D. Th required functionality of the map is to be able to zoom in and out, load images in the background in google maps style of the terrain, pop-up balloons when you select the country and finally the ability to colour countries in.
2D:
Pros
I can quickly and easily load the coordinates into the game and draw lines between vertices to render the countries.
Easy to implement a google maps style map in the background loading the appropriate images at the appropriate altitude level.
Cons:
I wish to have thematic mapping and this means programming my own fill polygon functions as I currently understand there is no 2d polygon support in DBP.
I would have to program my own collision detection as such to make the polygons clickable.
3D:
Pros:
I can use in built functions to colour polygons and make them clickable easily.
Cons:
I'm not sure how to turn my coordinate data quickly into 3D models. With Islands etc there would probably be 250+ models to be made.
---------
So 3D seems to be the way to go for development time except for one con which seems massive. If anyone can help me with that it would be much appreciated? I'm guessing it would be best to construct algorithmically in the game to save me time, but not sure that is possible.
An additional thoughts is; If I then work in 3D I presume the best way to create the pop-ups is to render an image of the pop including all the text and images and then texture this onto a plane which I then pop-up?
If anyone has any other thoughts they want to share it would be great or if anyone can help with the 3D con that would be brilliant.
Thanks for any help offered.
www.freewarehub.net