LEARN // meshfx
What is glTF and GLB
glTF is an open file format for 3D scenes: meshes, PBR materials, textures, animations and node transforms. A .gltf file is readable JSON that points to separate binary and image files, while .glb packs the same data into one binary file. You use it to move models into Godot 4, three.js and most other engines.
pyrofx effects work today, and new accounts start with $5 of usage.
meshfx measures faults, checks repairs and makes LODs for a triangle budget. meshfx runs on the hosted API: try it in the Playground.
- Units: meters, +Y up
- Triangles only, counter-clockwise front faces
- Materials: PBR metallic-roughness
- Pivot: the node origin
01 // WHAT IT MEANS
What a glTF file holds
glTF comes from the Khronos Group and was made for delivering 3D to apps, so it stores data close to how engines use it: triangle meshes in vertex buffers, PBR metallic-roughness materials, skins, morph targets and keyframe animation. Its rules are fixed: meters, +Y up, counter-clockwise front faces, and node transforms, so a pivot is a node's origin.
Extensions add features such as geometry compression, KTX2 textures and extra material types. A .gltf with separate files is easy to inspect and diff, and a .glb is easier to ship and load.
02 // IN YOUR ENGINE
glTF in each engine
- Godot 4: the recommended 3D format. Drop a
.glbinto the project and it imports as a scene. - three.js:
GLTFLoaderloads.gltfand.glb, the most common path for web 3D. - Unity: imports glTF through Unity's glTFast package, while FBX remains the built-in default.
- Unreal Engine 5: imports glTF and GLB as well as FBX.
- FBX, by comparison, stores a unit scale per file, often centimeters, and that scale causes the 100x size problem.
03 // IN YOUR PROJECT
Common glTF surprises
- Faces disappear: the exporter wrote the winding backward, or a negative scale flipped it.
- The model is huge or tiny: the source used centimeters and the exporter did not convert.
- Materials look wrong: roughness and metallic were not in green and blue, or a color map was saved as linear.
04 // SPATIAL COMPILER
Convert models to GLB by hand
The guides to convert FBX to GLB and convert OBJ to GLB walk through each conversion by hand.
meshfx measures holes, flipped faces and non-manifold edges. Each repair is checked against the source and undone with a warning if it moves the surface too far. Hosted meshfx runs are available in the Playground.
What is the best 3D model format for Godot?
glTF, usually as a GLB file, is the recommended format for Godot and carries meshes, materials, animation and node transforms in meters.
What 3D model format should I use for Unity?
FBX is the standard path with scale factor and unit conversion on import, while glTF works through glTFast and avoids centimeter scale issues.
What is the best 3D model format for Unreal Engine?
FBX is the standard path for collision meshes and LODs in one file, while Unreal Engine also imports glTF and GLB with PBR materials.
How do I load a GLB in three.js?
Use GLTFLoader from the three.js addons, call loader.load to add the scene and include lights so PBR materials render properly.
Explore meshfx outputs
Inspect compiled meshfx outputs and their reports. Hosted meshfx runs are available in the Playground.