I3dmLoader

object I3dmLoader

Parses an Instanced 3D Model payload. The i3dm header is 32 bytes (the standard 28-byte 3D Tiles header plus a uint32 gltfFormat field at offset 28). Only the embedded-GLB form (gltfFormat == 1) is supported — the legacy URL form is rejected.

Bytes 0..3   : magic = "i3dm"
Bytes 4..7 : version = 1
Bytes 8..11 : byteLength
Bytes 12..15 : featureTableJSONByteLength
Bytes 16..19 : featureTableBinaryByteLength
Bytes 20..23 : batchTableJSONByteLength
Bytes 24..27 : batchTableBinaryByteLength
Bytes 28..31 : gltfFormat (0 = url, 1 = embedded GLB)
Then feature/batch tables, then the GLB.

Functions

Link copied to clipboard