glTF Extras Extensions

AnimEngine’s glTF loading implementation provides an interface for reading and responding to additional data in glTF files. This makes it possible to markup additional information about a scene/object/ect or enable additional features to be implemented and noted in the glTF files.

The additional information is stored within an extras field. These fields are part of the glTF spec, and allow for unlimited extra data to be stored alongside any regular glTF object.

The ExtrasExtension interface exposes this data through a wide variety of callback functions dispatched before and after the processing of various glTF objects. This makes it possible for extra data to modify processing of a glTF file robustly.

The interface is documented on Doxygen: ExtrasExtension

It is highly recommended that additional features added to the engine take advantage of extras extensions. Currently there are three extensions defined and used by AnimEngine. These may be used as reference as to how to implement new extensions.