Skip to content
Gérald Choqueux edited this page Mar 1, 2019 · 1 revision

Generating glTF.

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.

For more information, you can be visiting https://www.khronos.org/gltf/.

Advices for generating small glTF files

Remove normal

If the normal of the points is identical to the normal of the face, it is thus not obligatory to generate the normals, because iTowns will generate them, automatically, during the fetching/parsing.

Use face index list

If there are vertices with same position and same normal, use face index list, to reduce vertex and normals count.

Use Draco Compression

Draco is a library for compressing and decompressing 3D geometric meshes and point clouds. It is intended to improve the storage and transmission of 3D graphics. Visiting github Draco.

Tools to converting/compressing 3D model to glTF Draco:

  1. FBX2glTF.
  2. Compressonator.
  3. gltf-pipeline
  4. insimo