How to import an AI 3D model into Godot
Short answer: export a .glb (glTF 2.0, the format Godot's docs recommend), copy it into your project folder and wait for Godot to import it as a scene. Then check the scale (1 Godot unit is 1 meter), look at the material, and add a trimesh collision shape if the prop should stay put. Everything here is free. We tested this in Godot 4.7.2 on November 8, 2026 with the same CC0 treasure chest we generated on November 7 from TRELLIS.2 and Hunyuan3D 2.1.
What you need
- A GLB file. If you do not have one yet, start with Which free AI 3D model generators let you download? or pick a generator in Best free AI 3D model generators for game assets. We reused the November 7 chest from Hunyuan3D vs TRELLIS.2 for free 3D game assets instead of generating a new one.
- Godot 4. Godot's Available 3D formats page (4.7 docs, checked November 8, 2026) lists glTF 2.0 as recommended, with support for both text
.gltfand binary.glb. The same docs section, Importing 3D scenes, covers how the importer turns that file into a Godot scene. - Blender, if the mesh is too heavy or the scale is wild. Free. See How to turn an image into a 3D game model for free for a tested cleanup and decimate script.
Step 1: get a GLB
Download the model as GLB from your generator. Meshy, Tripo, Rodin, TRELLIS.2 and Hunyuan3D 2.1 all offer GLB on the free plans we already checked. We did not import a Meshy, Tripo or Rodin file today. The three files we did import were generated on November 7, 2026 from the CC0 Treasure Chest render on Poly Haven:
- TRELLIS.2 textured GLB, 11,817,020 bytes (11.8 MB). The file uses the
EXT_texture_webpglTF extension. - Hunyuan3D 2.1 untextured shape, 7,601,444 bytes (7.6 MB). The November 7 textured run was refused with "The requested GPU duration (270s) is larger than the maximum allowed."
- The same Hunyuan3D mesh after Simplify Mesh to 10,000 faces, 180,620 bytes (181 KB).
Those generation facts, licenses and demo limits are in Hunyuan3D vs TRELLIS.2 for free 3D game assets. The import numbers below were re-measured in Godot 4.7.2 on November 8, 2026.
Step 2: copy the file into your Godot project
Make a folder such as models in your Godot project and copy the .glb there. Godot's Available 3D formats page says to copy the scene file (and any separate textures or mesh data) into the project, then Godot does a full import when the editor window gets focus. In our headless test we ran godot --headless --import on a throwaway Godot 4.7.2 project, so we did not click the editor window ourselves. All three files imported with no errors:
- Each file loaded as a
PackedScene. - The scene tree was a root
Node3D(named after the file), a childNode3Dnamedworld, and oneMeshInstance3D. - The TRELLIS.2 and full Hunyuan3D meshes were named
geometry_0. The simplified Hunyuan3D mesh was namedtmppdggj1mx_ply(the source GLB called ittmppdggj1mx.ply; Godot replaced the dot).
Step 3: inspect the mesh and materials
Double click the imported file in the FileSystem dock to open it as a scene, or drag it into a 3D scene. We did not click those editor controls (the test was headless). We did instantiate each imported scene from a script and read the mesh, materials and bounding box:
| File, imported November 8, 2026 | Triangles | Vertices | Size in Godot units | Material |
|---|---|---|---|---|
| TRELLIS.2 textured chest | 297,020 | 219,880 | 0.98 by 0.65 by 0.55 | StandardMaterial3D with 2048 by 2048 albedo, metallic and roughness textures |
| Hunyuan3D 2.1 untextured | 422,248 | 211,100 | 1.99 by 1.31 by 1.19 | Default StandardMaterial3D, no textures |
| Hunyuan3D Simplify Mesh 10,000 | 10,000 | 4,978 | 1.99 by 1.31 by 1.19 | Default StandardMaterial3D, no textures |
The TRELLIS.2 file stores its PBR maps as WebP inside the GLB. Godot 4.7.2 read them: after import the albedo, metallic and roughness slots were each a CompressedTexture2D at 2048 by 2048. There was no normal, ambient occlusion or emission map. That matches what we saw when we opened the same file on November 7. The two Hunyuan3D files have no images in the GLB, so Godot gave them a plain white StandardMaterial3D (metallic 0, roughness 1). If your download came out untextured, finish it with How to texture a 3D model for free with AI.
Step 4: fix the scale
Godot's Introduction to 3D page (4.7 docs, checked November 8, 2026) says Godot uses the metric system for everything in 3D, with 1 unit equal to 1 meter, and that physics is tuned for that scale. The default editor grid is 1 by 1 meter. AI models often arrive at whatever size the generator picked.
Our TRELLIS.2 chest was about 1 meter wide, which is a believable treasure chest. The Hunyuan3D chest was about 2 meters wide, twice as large, even after Simplify Mesh. To resize a prop, select the imported root Node3D (or the MeshInstance3D) and change Scale in the inspector. We measured the bounding boxes from a script and did not drag the editor scale gizmo, so treat the inspector steps as the usual Godot workflow rather than a click we filmed.
If you have many models to normalize, it is cleaner to set the scale and origin in Blender first, then re-export a GLB. The cleanup script in How to turn an image into a 3D game model for free does that.
Step 5: add collision for a static prop
A mesh on its own has no physics shape, so your player will walk through it. For a crate, chest or wall that should stay put, Godot's docs point to a StaticBody3D with a triangle mesh (trimesh) shape.
- Godot's MeshInstance3D page documents
create_trimesh_collision(), which creates aStaticBody3Dchild with aConcavePolygonShape3Dthat matches the mesh. The same page documentscreate_convex_collision(), which creates aStaticBody3Dwith aConvexPolygonShape3D. Both notes say the helpers are mainly used for testing. - The Advanced Import Settings page describes Generate, Physics: Body Type Static creates a
StaticBody3D, and Shape Type Trimesh is the precise per-triangle option, only valid with a Static body. It recommends trimesh for static level geometry, and primitive or convex shapes for things that move. - You can also name the mesh with a
-colsuffix (trimesh) or-convcol(convex) before import, as described on the node type customization page. We did not rename the files or click Advanced Import Settings in the editor.
What we did run, in Godot 4.7.2 headless, was the two helper methods:
# After the GLB is imported, instance it and find the MeshInstance3D.
var prop: Node3D = load("res://models/trellis_chest.glb").instantiate()
var mesh := prop.find_child("geometry_0", true, false) as MeshInstance3D
# Precise collision that matches every triangle. For a static prop only.
mesh.create_trimesh_collision()
# Simpler hull. We tested this on the 10,000 triangle Hunyuan3D export.
# mesh.create_convex_collision() On every mesh, create_trimesh_collision() added a child named after the mesh plus _col (for example geometry_0_col):
trellis_chest (Node3D)
world (Node3D)
geometry_0 (MeshInstance3D)
geometry_0_col (StaticBody3D) // added by create_trimesh_collision()
CollisionShape3D (ConcavePolygonShape3D) - TRELLIS.2:
StaticBody3DplusConcavePolygonShape3Dwith 297,020 faces (891,060 face vertices). - Hunyuan3D untextured: the same setup with 422,248 faces (1,266,744 face vertices).
- Hunyuan3D 10,000: the same setup with 10,000 faces (30,000 face vertices).
On the simplified Hunyuan3D mesh we then called create_convex_collision(). Godot added a second child, tmppdggj1mx_ply_col2, a StaticBody3D whose CollisionShape3D was a ConvexPolygonShape3D with 301 points. That hull is much cheaper than 10,000 triangles, but it cannot represent dents or a hollow inside. Use trimesh when the player should rest on the real surface of a static prop; use convex (or a box, capsule or sphere you place yourself) when you want a simpler, faster shape. We did not call create_convex_collision() on the 297,020 or 422,248 triangle meshes.
Step 6: watch the triangle count
Both raw AI exports are heavy for a single prop. TRELLIS.2's November 7 demo would not decimate below 100,000 faces, and our file stayed at 297,020 triangles after import. Hunyuan3D's raw mesh was 422,248 faces. The Hunyuan3D export tab's Simplify Mesh option cut that to exactly 10,000, and that lighter file is the one we would drop into a real scene. For a TRELLIS.2 model, plan a pass in Blender with the Decimate modifier. The script in How to turn an image into a 3D game model for free does merge, normals, origin and decimate, then exports a new GLB. For a textured model, skip the merge: our tested numbers and the step that scrambles textures are in How to reduce polygons of an AI 3D model for free.
A 297,020 triangle collision shape also means Godot stored 891,060 face vertices on the ConcavePolygonShape3D. That is fine for one hero prop on a PC, and a bad idea for a room full of copied chests.
What our test showed
We created a throwaway Godot 4.7.2 project (4.7.2-stable (official), hash ed1daf0bf), copied in the three November 7 GLBs, ran a headless import, then instantiated each scene from a script:
- Import succeeded for all three files. Each became a
PackedScenewith aMeshInstance3Dholding anArrayMeshof one triangle surface. - Triangle counts after import matched the source GLBs: 297,020, 422,248 and 10,000.
- TRELLIS.2 WebP PBR maps became 2048 by 2048
CompressedTexture2Dslots on aStandardMaterial3D. - Hunyuan3D files imported untextured, with a default
StandardMaterial3D. create_trimesh_collision()built a matchingStaticBody3DandConcavePolygonShape3Don each mesh.create_convex_collision()on the 10,000 triangle mesh built aConvexPolygonShape3Dwith 301 points.
Troubleshooting
- The model is huge or tiny. Check Scale on the imported root. Remember 1 unit is 1 meter. Our two chests came out about 1 meter and 2 meters wide from the same picture.
- The model is see-through or inside out. Some exporters disable backface culling. We did not see that on these three files. The texture guide notes that Godot will render both sides if Blender exported the material that way.
- The model has no color. Either the generator gave you an untextured mesh (Meshy Free and our Hunyuan3D run do this) or the textures sit in separate files next to a
.gltf. Copy those files too. A.glbkeeps them inside one file. - The player walks through the prop. The mesh has no collision until you add it. Call
create_trimesh_collision()or enable Generate Physics on import. - The game stutters when the camera looks at the prop. Check the triangle count on the
ArrayMesh. If it is in the hundreds of thousands, decimate in Blender and reimport.
What we did not test
- Editor clicks: focusing the window to trigger import, the Import dock, Advanced Import Settings, dragging the scene into a 3D viewport, and the editor scale gizmo. We imported headlessly and inspected the result from a script.
- GLB files from Meshy, Tripo or Rodin. Those tools export GLB, but the files we opened today were the November 7 TRELLIS.2 and Hunyuan3D chests.
- Unity or Unreal imports. Same stance as the November 7 vs page: the unverified safe route is to export FBX from Blender.
create_convex_collision()on the 297,020 and 422,248 triangle meshes, moving (dynamic) bodies, and primitive shapes you place by hand.- How the TRELLIS.2 WebP textures look in the editor viewport. We confirmed the texture resources loaded, not that we lit and framed the chest on screen.
Free tools in this guide
Godot
Free, open source 2D and 3D game engine with its own easy scripting language, GDScript.
Pricing: Free. Beginner rating: 4/5. Small download, no fees or royalties, and a huge beginner community.
Free, open source engine. Its 4.7 docs recommend glTF 2.0 (GLB) and imported all three of our test files.
TRELLIS.2
Microsoft's open source image to 3D model (MIT license). Turns one picture into a textured 3D asset with PBR materials and exports GLB. Free online demo on Hugging Face.
Pricing: Free. Beginner rating: 4/5. Free and fine for commercial use, but running it yourself needs Python and a 24 GB NVIDIA GPU. Try the free online demo first.
The textured chest we imported: 297,020 triangles and 2048 WebP PBR maps, MIT licensed.
Hunyuan3D 2.1
Tencent's open-weight image to 3D model with PBR texture generation. Free online demo on Hugging Face, exports GLB or OBJ. Its license does not apply in the EU, UK or South Korea.
Pricing: Free. Beginner rating: 4/5. Free demo and free weights, but running it yourself needs Python and 10 to 29 GB of GPU memory, and the license excludes some countries.
The untextured chest we imported, plus the 10,000 face simplified export. Check the license territory first.
Blender
Free, open source 3D app for modeling, UV unwrapping, texturing, baking, rigging and animation. It imports and exports glTF/GLB, FBX and OBJ, so it is the free workbench for fixing and texturing AI-generated models before they go into Godot, Unity or Unreal.
Pricing: Free. Beginner rating: 4/5. Free with no account, and it does almost everything, but the interface is big and a beginner needs a tutorial for UVs, materials and baking.
Free app for decimating a heavy AI mesh, fixing scale and exporting a cleaner GLB.
Related
Making a browser game instead? Read How to import an AI 3D model into three.js. Need a file first? Read Which free AI 3D model generators let you download? and Best free AI 3D model generators for game assets, or see how we made these chests in Hunyuan3D vs TRELLIS.2 for free 3D game assets. Clean up and decimate in How to turn an image into a 3D game model for free, then How to texture a 3D model for free with AI if the download has no color. Characters need a skeleton next: How to rig an AI-generated 3D model for free, How to animate a 3D character for free and How to use Mixamo animations in Godot 4. Browse every 3D model and texture tool.
FAQ
Can Godot 4 open an AI-generated GLB?
Yes. Godot's Available 3D formats page (Godot 4.7 docs, checked November 8, 2026) calls glTF 2.0 the recommended format and supports both .gltf and .glb files. On November 8, 2026 we imported three GLBs from the same CC0 chest we generated on November 7: a TRELLIS.2 textured file, a Hunyuan3D 2.1 untextured file, and Hunyuan3D's 10,000 face simplified export. All three loaded as PackedScene resources in Godot 4.7.2.
What format should I export from an AI 3D tool?
GLB, which is the binary form of glTF 2.0. Godot's docs recommend glTF 2.0 over DAE, OBJ and FBX when you can choose. Meshy, Tripo, Rodin, TRELLIS.2 and Hunyuan3D all offer a GLB download on the plans we already checked. We imported TRELLIS.2 and Hunyuan3D GLBs today. We did not import a Meshy, Tripo or Rodin file for this guide.
Why is my imported model the wrong size?
Godot's Introduction to 3D page (4.7 docs) says Godot uses the metric system in 3D, with 1 unit equal to 1 meter. AI generators often export at whatever size their pipeline chose. In our test the TRELLIS.2 chest measured 0.98 by 0.65 by 0.55 units and the Hunyuan3D chest measured 1.99 by 1.31 by 1.19 units. Select the imported root (or the MeshInstance3D) and change its Scale in the inspector until it looks right next to a 1 meter reference, such as Godot's default grid.
How do I add collision to a static prop?
For a prop that should not move, use a triangle mesh (trimesh) collision shape on a StaticBody3D. In our headless test we called MeshInstance3D.create_trimesh_collision() on each imported mesh. Godot created a StaticBody3D child with a CollisionShape3D whose shape was a ConcavePolygonShape3D, with the same face count as the mesh (297,020, 422,248 and 10,000). Godot's docs say trimesh is the precise option for static level geometry and can only be used with a Static body. For a simpler shape we also called create_convex_collision() on the 10,000 triangle mesh, which created a second StaticBody3D with a ConvexPolygonShape3D of 301 points.
Why does my AI model slow the game down?
Free AI demos often export far more triangles than a prop needs. On November 7, 2026, TRELLIS.2 exported our chest at 297,020 triangles and would not decimate below 100,000. Hunyuan3D 2.1 exported 422,248 faces, then Simplify Mesh cut that to exactly 10,000. We re-counted those same files in Godot 4.7.2 on November 8. Simplify a TRELLIS.2 mesh in Blender before you ship a scene full of them. See How to turn an image into a 3D game model for free for a tested decimate script.
Did the TRELLIS.2 textures import, and did you test Unity or Unreal?
The TRELLIS.2 GLB uses the EXT_texture_webp glTF extension. On November 8, 2026 Godot 4.7.2 imported it as a StandardMaterial3D with 2048 by 2048 albedo, metallic and roughness textures (CompressedTexture2D). The two Hunyuan3D files had no textures in the GLB; Godot assigned a default untextured StandardMaterial3D. We did not test Unity or Unreal. For those engines the unverified safe route is to export FBX from Blender.
Sources, checked November 8, 2026: Godot 4.7 docs for available 3D formats, importing 3D scenes, introduction to 3D (1 unit equals 1 meter), MeshInstance3D (create_trimesh_collision() and create_convex_collision()), Advanced Import Settings and node type customization. Generation facts and licenses for the test files are from our November 7 Hunyuan3D vs TRELLIS.2 guide. Test image: Treasure Chest by Rico Cilliers, CC0, Poly Haven. Tested in Godot 4.7.2.
