glTF™ (GL Transmission Format) is a royalty-free specification for the efficient transmission and loading of 3D scenes and models by applications. glTF minimizes both the size of 3D assets, and the runtime processing needed to unpack and use those assets. glTF defines an extensible, common publishing format for 3D content tools and services that streamlines authoring workflows and enables interoperable use of content across the industry.
glTF™(GL传输格式)是一种免版税的规范,用于应用程序高效传输和加载3D场景和模型。glTF最小化了3D资产的大小,以及解包和使用这些资产所需的运行时处理。glTF为3D内容工具和服务定义了一种可扩展的通用发布格式,简化了创作工作流程,并实现了整个行业内容的互操作使用。
为什么gltf三维格式适用于web?obj格式有哪些缺陷?
An overview of the basics of the GL Transmission format.
GL传输格式基础概述。
gITF was designed and specified by the Khronos Group, for the efficient transfer of 3D content over networks. The core of glTF is a JSON file that describes the structure and composition of a scene containing 3D models. The top-level elements of this file are:
gITF由Khronos Group设计和指定,用于通过网络高效传输3D内容。glTF的核心是一个JSON文件,它描述了包含3D模型的场景的结构和组成。此文件的顶级元素是:
- scenes, nodes:Basic structure of the scene场景的基础结构
- cameras:View configurations for the scene场景的视角
- meshes:Geometry of 3D objects三维场景的几何信息
- buffers, bufferViews, accessors:Data references and data layout descriptions缓冲区、缓冲区视图、访问器:数据引用和数据布局描述
- materiaIs:Definitions of how objects should be rendered材质:对象渲染方式的定义
- textures, images, samplers:Surface appearance of objects纹理、图像、采样器:对象的表面外观
- skins:Information for vertex skinning表皮:顶点蒙皮信息
- animations:Changes of properties over time动画:属性随着时间的变化
These elements are contained in arrays. References between the objects are established by using their indices to look up - the objects in the arrays.
这些元素包含在数组中。对象之间的引用是通过使用它们的索引来查找数组中的对象来建立的。
It is also possible to store the whole asset in a single binary glTF file. In this case, the JSON data is stored as a string, followed by the binary data of buffers or images.
也可以将整个资产存储在一个二进制glTF文件中。在这种情况下,JSON数据存储为字符串,后面是缓冲区或图像的二进制数据。
Concepts(概念)
The conceptual relationships between the top-level elements of a glTF asset are shown here:
glTF资产顶级元素之间的概念关系如下:
Binary data references(二进制数据引用)
The images and buffers of a gITF asset may refer to external files that contain the data that are required for rendering the 3D content:
gITF资产的图像和缓冲区可能指的是包含渲染3D内容所需数据的外部文件:
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· 分享4款.NET开源、免费、实用的商城系统
· 全程不用写代码,我用AI程序员写了一个飞机大战
· MongoDB 8.0这个新功能碉堡了,比商业数据库还牛
· 白话解读 Dapr 1.15:你的「微服务管家」又秀新绝活了
· 上周热点回顾(2.24-3.2)
2023-11-03 rasterization算法(栅格化)
2023-11-03 cgal算法库示例
2022-11-03 geoserver wfs数据返回不全
2022-11-03 jquery中美元符号$是什么?下划线又代表什么?
2021-11-03 摄影测量中的几个坐标系统
2020-11-03 ArcGIS坐标单位转换(米和度分秒之间是如何转换的?)
2016-11-03 Tagoram:Real-Time Tracking of Mobile RFID Tags to High Precision Using COTS Devices