
A-Frame
3D & game enginesShow your Vuframe 3D models in A-Frame web and WebXR scenes with the GLB export and the gltf-model component.
Vuframe® exports your 3D models as GLB, the binary form of glTF. A-Frame loads GLB files with its gltf-model component, so you can place your products in web and WebXR scenes written in HTML.
Add Vuframe content to A-Frame
- Ask your Vuframe project manager for the GLB export of your 3D model.
- Host the GLB file on your web server or CDN, next to your page.
- Declare the file in the asset system:
<a-assets><a-asset-item id="product" src="model.glb"></a-asset-item></a-assets> - Add it to the scene:
<a-entity gltf-model="#product"></a-entity>
Good to know: some web servers do not compress or serve .glb files correctly, so check the response type. If you need no code, embed the Vuframe 3D viewer as an iframe and control it with the JavaScript API. More: 3D formats, glTF / GLB and the A-Frame docs for gltf-model.