
PlayCanvas
3D & game enginesBring your Vuframe 3D models into PlayCanvas projects as GLB, in the Editor or at runtime with the engine API.
Vuframe® exports your 3D models as GLB, the binary form of glTF. PlayCanvas imports GLB in its Editor and can also load it at runtime, so you can use your products in web games, configurators and showrooms.
Add Vuframe content to PlayCanvas
- Ask your Vuframe project manager for the GLB export of your 3D model.
- In the PlayCanvas Editor, drag the GLB into the Assets panel. PlayCanvas creates a Template with the model hierarchy and Render assets.
- Drag the Template into the Hierarchy to add the model to your scene.
- To load the model at runtime instead, use the engine API:
js
this.app.assets.loadFromUrlAndFilename('path/to/model.glb', 'model.glb', 'container', (err, asset) => {
if (!err) this.app.root.addChild(asset.resource.instantiateRenderEntity());
});Good to know: at runtime, host the GLB on a server that allows cross-origin requests from your app. 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 PlayCanvas docs on models and loading assets.