How to convert a 3D Model to GLB

When converting your 3D model to work with the #SPIFF editor, we use the Blender 3d Toolset. Since the models used on our editor are going to appear across various devices, including mobile, there are some steps we need to take to ensure it all works as it should. Understanding the Blender program; where everything is, can be daunting without the proper context, here’s our guide.

Getting to the right format


note: sometimes a fresh blender file can include a cube object in the scene. removing this is as simple as left-clicking it, and deleting it with the delete key.

For Spiff, the file format “.glb” is required, this format is quickly becoming the industry standard for online & mobile experiences for its efficiency and speed. Although .glb is the only acceptable format to the Spiff editor itself, we can convert to it from more conventional formats with ease.

In order to import your model to Blender, to further convert, it’s as simple as opening Blender, and then navigating to File>Import>, and then searching for your model file. This works like most other software’s import feature. For this example, we will import an FBX file.

Collect for Export


note: it’s really helpful at this point to save this blender file for later use. through File>Save>


Now that you’ve imported your model, we can easily get an overview of the imported model and continue to export it into the GLB Format. All we need to do is select all of the objects we would like to include in our GLB. (The object itself, lights etc.) and then proceed to export it. That simple!

Check it out!

Now that we have exported our model to the GLB Format, we can quickly and easily view it to make sure it all works correctly before uploading it to spiff. We use the Babylon.js Viewer.

Finalisation

Now that we’re all converted we are ready to upload to #SPIFF and gain some serious traction on our personalisation adventure! Of course, there are a variety of other things to look through with our 3D Model before exporting, but this is the basic first step to setting things up. Next, we will cover how to attach textures & setup materials for the GLB platform.

Home » Documents » Content » Assets » 3D Models » How to convert a 3D Model to GLB