You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Run the executable (java -jar OSM2World.jar)
Then select File > Open OSM File and once loaded File > Export OBJ File
Alternatively, use the following command: java -jar OSM2World.jar -i map.osm -o map.obj
This will generate the 3D model files map.obj and map.obj.mtl
2.1. (Optional) Adding terrain elevation
Note that OSM data lacks elevation data, so that the generated terrain will be flat. However, it is possible to use elevation data from the Shuttle Radar Topography Mission (SRTM) (see wiki.openstreetmap.org/wiki/SRTM). The process is as follows:
Create a OSM2World configuration file name config.properties with the following content: srtmDir = SRTM
Create a folder named SRTM in the OSM2World root folder
Run OSM2World using the configuration: java -jar OSM2World.jar -i map.osm -o map.obj --config config.properties
This will display a message indicating what STRM files are needed: warning: missing SRTM tile N49E008.hgt
Download the missing SRTM files into the SRTM folder.
Recommended source: SRTMGL1 from USGS EROS Center (requires account)