model-viewer
3D & game enginesShow your Vuframe 3D models with Google's model-viewer web component: GLB for the web, USDZ for AR on iOS.
Vuframe® exports your 3D models as GLB and USDZ. Google's <model-viewer> web component shows the GLB in the browser and opens AR on Android and iOS, so one HTML tag puts your product on any page.
Add Vuframe content to model-viewer
- Ask your Vuframe project manager for the GLB export, and the USDZ export for iOS.
- Host both files on your web server or CDN.
- Include the
<model-viewer>script on your page, from npm or the CDN link in the docs. - Add the element:
<model-viewer src="model.glb" ios-src="model.usdz" ar camera-controls alt="Product"></model-viewer>
Good to know: src takes only glTF/GLB. Without ios-src, model-viewer creates a USDZ on the fly for Quick Look; your own USDZ gives you control over the result on iOS. 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 model-viewer docs.