Back to Aframe

A Gltf Model

docs/primitives/a-gltf-model.md

1.7.1695 B
Original Source

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

Example

html
<a-scene>
  <a-assets>
    <a-asset-item id="tree" src="tree.gltf"></a-asset-item>
  </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

AttributeComponent MappingDefault Value
srcgltf-model.srcnull