Babylon.js

3D & game engines

Load your Vuframe 3D models into Babylon.js scenes with the GLB export and the glTF loader.

Vuframe® exports your 3D models as GLB, the binary form of glTF. Babylon.js loads GLB files with the glTF loader from its loaders package, so you can use your products in your own Babylon.js scenes.

Add Vuframe content to Babylon.js ​

  1. Ask your Vuframe project manager for the GLB export of your 3D model.
  2. Host the GLB file on your web server or CDN, next to your app.
  3. Install @babylonjs/loaders and register the loaders before you load a model: import { registerBuiltInLoaders } from "@babylonjs/loaders/dynamic"; registerBuiltInLoaders();
  4. Load the model into your scene: await ImportMeshAsync("model.glb", scene); (or AppendSceneAsync to add the whole file, with cameras and lights).

Good to know: the module-level functions such as ImportMeshAsync replace the older SceneLoader class. 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 Babylon.js docs on loading any file type.