<a-model>

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

The model primitive makes it easy to add OBJ or DAE (Collada) 3D models to a scene. Loaded models include textures, but do not include animations in the current version of A-Frame. The model primitive wraps an entity that contains a loader component.

Attribute Default Value Component Mapping
format collada loader.format
opacity 1.0 loader.opacity
src None loader.src

View source on GitHub

Examples

A tree model:

<a-model src="https://aframe.io/aframe/examples/_models/tree1/tree1.dae"></a-model>

Using scale to increase to size of the loaded tree model:

<a-model scale="10 10 10" src="https://aframe.io/aframe/examples/_models/tree1/tree1.dae"></a-model>

Similarly, to load an .obj file:

<a-model src="model.obj" format="obj"></a-model>