Display a map from Openstreetmap data with an open source 3D engine?

Rendering a 3D map from Openstreetmap data can be rather cumbersome .

But what if the requirements are less demanding than rendering any city in the world in 3D?

What if I just need to display only a certain city, limited to specific borders? There should not be many polygons for rendering, especially if I want to display only those buildings and roads that are actually visible on the screen (I heard that this technique is used in game development).

I want to achieve something like this , but it is normal to have simple boxes for buildings with an approximate height and no textures. So basically I just need an OSM-based road network and simple boxes representing buildings in 3D.

Thus, the plan may be as follows:

  • Extract OSM data to an .osm file
  • add "height" data to each building in this file (manually);
  • displays a three-dimensional view of the map from the .osm file (requires its own parser) with some kind of three-dimensional engine.

Is this plan feasible? Are there any open source 3D engines that I can use / configure to display an OSM card from an .osm file? Are there any Linux-compatible (OpenGL?) 3D engines that can be [possibly] configured to display an OSM map?

+5
4

, OpenStreetMap , . , , .

, , , . :

1 - footprints xml osm.

2 - , , PROJ.4, osm lat-long.

3 -Triangulate, .

4 - , .

5. , 3d-, OpenSceneGraph , OpenGL.

, , , , , .

+1

, OSM2World. , OSM 3D- , , . OpenGL , .pov .obj, Open Source.

, :

OSM2World rendering

OpenStreetMap 3D-, .

+3

Here are a few open source projects that you can tailor to your needs (see below). Most of them use opengl, which should also work well for your needs.

First I would look at glosm. He does most of what you want. You can see some screenshots here.

+2
source

Many cities have access to real estate records , including the size of the building.

0
source

All Articles