Aller au contenu

Single 3D model

A 3D model (in the glTF) or glb format, can be loaded and displayed through the single model layer. The model can be placed on the surface of the planet by giving it longitude, latitude, and altitude values. The model can also be offset from its origin, scaled and rotated.

Because there are competing conventions for which axis is up, and how the axes are oriented one to another, the frame property structure is needed in order to have the model be properly oriented.

Some glTF extensions are supported:

Animations

A glTF file can contain animations. Horizon can play translation, rotation, and scale animations (but not skeletal or morph animations). Moreover, those files can contain multiple animations. Horizon can play all of them at once, or only a subset selected through the scene model. Note that some animations are incompatible with one another, Horizon does not attempt to detect incompatible animations, and it is up to the integrating application to properly select which animations should play.

See the documentation for the animation field of SingleModelLayer.