glTF är ett modernt öppet format för 3D-scener och 3D-modeller. Byggnader extruderas till 3D med texturer och material. Standarden för webb-3D (three.js, Babylon.js) och spelmotorer.
Viktiga funktioner

Om formatet glTF
glTF 2.0 is the Khronos Group's open standard for delivering three-dimensional scenes: geometry, materials and scene structure are described in JSON, while vertices and faces live in binary buffers. The format was conceived as the JPEG of 3D, and today browser engines, game editors and viewers read it without conversion.
OpenStreetMap maps are exported to glTF when you need a city with volume rather than a picture: to spin a block right in the browser, drop the built-up area into a Unity or Unreal scene, show the surroundings in AR, or assemble the geometric base of a digital twin. From there the model is edited in Blender like any other 3D scene.
The file contains the buildings of the selected area: each house outline is extruded upward to its height from the height and building:levels tags, and when those are missing a sensible value is substituted by building type — a detached house gets about six meters, a garage three, a building with no stated type nine, roughly three floors. Roads, water and greenery do not make it into the 3D scene, and terrain is not taken into account: the buildings stand on a flat base plane added underneath the model. Color is assigned by building type, the material is matte, with no metallic sheen.
Coordinates are converted to local meters with the origin at the center of the area, so the model arrives at real-world scale and right next to the scene origin — no hunting for it and no rescaling. The .gltf file is self-contained: the binary buffers are embedded inside as data URIs, no separate .bin appears alongside. If you need a single compact binary, GLB sits right next to it.
Vilket program öppnar glTF-filer
Följande program och applikationer kan öppna, redigera och arbeta med glTF (GL Transmission Format)-filer (.gltf) som exporterats från OSM2CDR:
Format specifications
- Open standard
- 3D coordinates supported
- Lossless (no quality loss)
- Stores feature attributes
- Output: 3 files in archive
- glTF 2.0 (Khronos). JSON + binary buffers, ZIP includes textures. Streaming-friendly, native browser support via three.js.
Vem använder glTF-kartor
Så exporterar du glTF
Så öppnar du filen efter exporten
- Blender (free) — File → Import → glTF 2.0; the model arrives in meters, and from there you can simplify it, recolor it and render it.
- An online viewer — drag the file into three-gltf-viewer or gltf.report and spin the scene right away, checking the polygon count and materials.
- three.js and Babylon.js — hook it up through GLTFLoader or SceneLoader: the model drops into the scene with no conversion beforehand.
- Unity and Unreal Engine — import through glTFast or UnityGLTF and the built-in glTF import plugin respectively; after importing, check that the scene units are meters.
- Cesium — load the model onto the globe; for a whole city it is more convenient to take the 3D Tiles format, which is designed for loading in pieces.
Populära kartor i glTF
Hämta kartexporter i glTF (GL Transmission Format)
Ladda ner professionella glTF-kartor från OpenStreetMap. Direktgenerering, valfritt område.
Vanliga frågor
Jämför med andra format
Relaterade format
Ofta exporterade tillsammans
Related Articles
OpenStreetMap to SketchUp: import real buildings and terrain as a 3D model
How to bring OpenStreetMap buildings and terrain into SketchUp via COLLADA, OBJ or glTF: import, units and scale, geoloc
formatglTF — The JPEG of 3D: Khronos's Web, AR/VR, and Games Format, with OSM Building Export
Khronos Group's glTF 2.0 since June 2017: JSON + .bin + PBR materials, Draco compression, GLB binary container, OSM buil
tutorialHow to Export 3D Buildings from OpenStreetMap to STL for 3D Printing
Step-by-step guide: export OpenStreetMap buildings with real heights to STL, glTF and OBJ for 3D printing, architectural