Export glTF (Khronos Group)

glTF (version 2.0) is a JSON-based 3D geometry delivery format. It supports modern materials (PBR) and geometry instancing and is supported by many desktop and web apps. It is a recommended exchange format for new projects. For details, see the KhronosGroup GitHub page.

Export options

In addition to the general export options, the following gltF option is available:

OptionDescription

GLTF Output Format

When set to glTF binary, the file is stored as a .glb file that contains all geometry and texture data. When set to glTF JSON, the file is stored as a .gltf file with geometry stored in .bin files and textures as .png files.

glTF to CGA mapping

The following table lists the material mapping from glTF to CGA:

glTF materialCGA material

baseColorTexture

material.colormap and material.opacitymap

baseColorFactor

material.color and material.opacity

alphaMode

material.opacitymap.mode

metallicRoughnessTexture

material.metallicmap and material.roughnessmap

metallicFactor

material.metallic

roughnessFactor

material.roughness

normalTexture

material.normalmap

occlusionTexture

material.occlusionmap

emissiveTexture

material.emissivemap

emissiveFactor

material.emissive

Note:
  • doubleSided, alphaCutoff, normalTexture.scale, and occlusionTexture.strength materials are not supported.
  • Other CGA material maps are ignored.