glTF er et moderne åbent format til 3D-scener og -modeller. Bygninger ekstruderes til 3D med teksturer og materialer. Standarden for web-3D (three.js, Babylon.js) og spilmotorer.
Vigtigste 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.
Hvilket program åbner glTF-filer
Følgende programmer og applikationer kan åbne, redigere og arbejde med glTF (GL Transmission Format)-filer (.gltf), der er eksporteret fra 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.
Hvem bruger glTF-kort
Sådan eksporterer du glTF
Sådan åbner du filen efter eksporten
- 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ære kort i glTF
Få korteksport i glTF (GL Transmission Format)
Download professionelle glTF-kort fra OpenStreetMap. Øjeblikkelig generering, ethvert område.
Ofte stillede spørgsmål
Sammenlign med andre formater
Relaterede formater
Ofte eksporteret sammen
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