The default supported schema version.
InternalencodersAn encoder for each supported schema version.
Data type of the file written by this Exporter.
The exported model file format.
List of supported schema versions.
Exports a SceneModel and/or a DataModel to file data.
The parameters used for writing the file data.
Options for customizing the export process.
Resolves when the SceneModel and/or DataModel has been successfully written.
Exports a SceneModel to glTF (2) format.
Emits a binary
.glbcontaining:SceneObject, with one child node perSceneMeshcarrying its model-space matrix.SceneGeometry— positions (decompressed from quantised), normals (oct-decoded), texcoords (decompressed via the geometry's decompress matrix), vertex colours, indices. Accessors are reused across meshes that share a geometry.SceneMaterial— base colour, metallic + roughness factors, alpha mode + cutoff, plus colour / metallic-roughness / normal / occlusion / emissive textures.SceneTexture.buffers/src(data URL or URL) are preserved verbatim; image / canvas /ImageDatasources are re-encoded as PNG via a 2D canvas. Sampler state (filters + wrap modes) is mapped from the SceneTexture into glTF.Compressed textures (S3TC, ASTC, BC7, ...) are skipped with a warning — embedding them would require a
KHR_texture_basisu-style extension that isn't supported here.For detailed usage, refer to @xeokit/sdk/formats/gltf.