Skip to content

Export for Unity, Godot and the web

A model is only useful once it opens where you need it. This page explains the three common formats, the Blender export settings that avoid the usual surprises, and how to show a model on a web page.

Which format?

GLB / glTF FBX OBJ
Best for Godot, three.js, Babylon.js, web pages, Blender Unity, Unreal, Maya, 3ds Max 3D printing, quick swaps
Mesh + materials yes (PBR) yes basic (separate .mtl)
Textures inside the file yes (GLB) optional no
Rigs and animation yes yes no
Open standard yes (Khronos) no (Autodesk) yes

Rule of thumb: GLB for anything new or on the web, FBX for Unity/Unreal pipelines. Every model on the models pages comes as GLB; the older ones also as FBX, and the newer ones as an editable Blender scene you can export to FBX yourself.

Exporting from Blender

GLB (Godot, web)

File › Export › glTF 2.0, Format: glTF Binary (.glb). Defaults are good: +Y Up is on (glTF's convention; Blender converts from its +Z up), modifiers can be applied, and image textures are packed into the one file.

FBX (Unity, Unreal)

File › Export › FBX, then:

  • Apply Scalings: FBX All: otherwise Unity imports the model 100× too big or small.
  • Forward: −Z Forward, Up: Y Up: matches Unity.
  • With an armature: untick Add Leaf Bones (it adds an extra bone at every chain end).
  • Apply Modifiers on, so what you see is what you export.

Scale and facing

Model in metres, apply rotation and scale before exporting (Object › Apply › All Transforms). A model that looks right in Blender but arrives lying down or tiny almost always has unapplied transforms.

Converting many files at once

Blender can run without its window, so a short script converts a whole folder. This is how the GLB versions on this site were made from the original FBX files:

# blender -b -P fbx_to_glb.py -- input_folder
import bpy, glob, os, sys
folder = sys.argv[sys.argv.index("--") + 1]
for fbx in sorted(glob.glob(os.path.join(folder, "*.fbx"))):
    bpy.ops.wm.read_factory_settings(use_empty=True)
    bpy.ops.import_scene.fbx(filepath=fbx)
    bpy.ops.export_scene.gltf(filepath=fbx[:-4] + ".glb", export_format="GLB")
    print("converted", fbx)

Putting a model on a web page

Google's free <model-viewer> element shows a GLB that visitors can turn and zoom, with no code of your own. It is what this site uses:

<script type="module"
  src="https://cdn.jsdelivr.net/npm/@google/model-viewer@4.3.1/dist/model-viewer.min.js"></script>

<model-viewer src="isaac-newton.glb" poster="isaac-newton.png"
  alt="3D model of Isaac Newton" camera-controls auto-rotate
  shadow-intensity="0.7" style="width: 100%; height: 400px"></model-viewer>
  • poster shows an image until the model has loaded: render one from Blender.
  • camera-controls lets people drag to turn and scroll or pinch to zoom.
  • Keep web models small: a few thousand triangles and textures of 2048 px or less load quickly on phones.

Checking a file before you share it

  1. Import it into a fresh Blender scene (File › New › General, delete the cube).
  2. Look at the size in the N panel: is a person about 1.7-1.8 m?
  3. Check it faces −Y (front view, numpad 1) and stands on the ground (Z = 0).
  4. For GLB, drop it on gltf-viewer.donmccurdy.com or the Khronos glTF Validator to catch errors.