<a-gltf-model>

Note: This documentation is for the old 0.5.0 version of A-Frame. Check out the documentation for the current 1.5.0 version

The glTF model primitive displays a 3D glTF model created from a 3D modeling program or downloaded from the web.

Example

<a-scene>
<a-assets>
<a-asset-item id="tree" src="tree.gltf">
</a-assets>

<!-- Using the asset management system. -->
<a-gltf-model src="#tree"></a-gltf-model>

<!-- Defining the URL inline. Not recommended but more comfortable for web developers. -->
<a-gltf-model src="tree.gltf"></a-gltf-model>
</a-scene>

Attribute

Attribute Component Mapping Default Value
src gltf-model.src null