glTF 🏠

glTF (GL Transmission Format)

Open Beta
.gltf · model/gltf+json

glTF 是一种用于三维场景和模型的现代开放格式。建筑会被拉伸成三维模型,并附带纹理和材质。是 Web 三维(three.js、Babylon.js)和游戏引擎的标准格式。

立即导出 glTF ✨ Open Beta — 免费无限制

主要特点

带高度的 3D 建筑
PBR 材质
JSON 格式(人类可读)
支持动画与纹理
glTF 格式导出示例(莫斯科中心,1x0.5 公里)
示例:莫斯科中心区,约 1x0.5 公里,中等详细度

关于 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.

打开 glTF 文件的程序

以下程序可以打开、编辑和处理从 OSM2CDR 导出的 glTF (GL Transmission Format)(.gltf)文件:

🎲Blender 💻three.js 💻Babylon.js 🎮Unity 🎮Unreal Engine 💻Cesium

格式规格

谁在使用 glTF 地图

🏗
网页三维可视化
A ready-made scene for three.js and Babylon.js: the built-up area spins right in the browser, with no plugins.
💻
游戏引擎
Importing city buildings into Unity and Unreal as the basis of a level or as background surroundings.
📊
AR / VR 应用
A lightweight block model for AR scenes and VR walkthroughs — the format is read by mobile and headset engines.
🎨
三维城市地图
A volumetric model of a district with real building heights for presentations and city portals.
🗺
数字孪生
The geometric base of a digital twin: buildings in meters, with data tied to them later.

如何导出 glTF

1
选择区域
在 osm2cdr 的交互式地图上绘制矩形或多边形
2
选择 glTF
从 127 种可用导出格式中选择 glTF (GL Transmission Format)
3
导出
点击导出,1–5 分钟内收到您的 .gltf 文件
4
下载
下载完成的 glTF 文件并在 Blender 中打开

导出后如何打开

glTF 格式的热门地图

Free

导出 glTF (GL Transmission Format) 地图

从 OpenStreetMap 下载专业的 glTF 地图。即时生成,任意区域。

免费 / 导出
立即导出 glTF →

常见问题

glTF 和 GLB 有什么区别?
我能在浏览器中查看它吗?
建筑高度从何而来?
Can I view it in a browser?
Where do building heights come from?
Do I need separate .bin files next to the .gltf?
At what scale and where is the model placed?
Are there facade textures?

与其他格式比较

相关格式

经常一起导出

Related Articles