meshfx // GENERATED MODELS // GODOT

How to get an AI-generated model into Godot 4

To use a model from an AI 3D generator in Godot 4, clean it in your 3D editor first (fragments, welds, triangle budget, UVs), export it as GLB, and copy it into your project folder. Then use the import settings to fix the scale, keep Generate LODs on, and add a collision shape from the Physics section.

pyrofx effects work today, and new accounts start with $5 of usage.

MODULE // meshfx AVAILABLE

meshfx measures faults, checks repairs and makes LODs for a triangle budget. meshfx runs on the hosted API: try it in the Playground.

  • Format: GLB
  • Root Scale for size
  • Physics section for collision

01 // BY HAND

Import and set it up in Godot 4

  1. Clean the model first with the clean-up steps and export GLB with +Y up and scale applied.
  2. Copy the .glb into your project folder, and Godot imports it as a scene.
  3. Select it in the FileSystem dock, and in the Import dock set Nodes > Root Scale if the model came in at the wrong size.
  4. Double-click the file to open Advanced Import Settings. On the mesh, keep Generate LODs on.
  5. Select the mesh node, turn on Physics > Generate, and pick Shape Type Simple Convex for a simple prop or Decompose Convex for a concave one.
  6. Extract the materials to their own files if you want to edit them, then click Reimport.
  7. Instance the scene next to a 1 m BoxMesh and check its size, facing and shading.

02 // WHAT TO CHECK

Common problems in Godot and their fixes

  • If the model is huge or tiny, the generator picked its own scale. Set Root Scale, or rescale in your editor and re-export so 1 unit is 1 m.
  • If faces are missing from one side, the normals are flipped. Recalculate them in your editor, since setting the material's Cull Mode to Disabled only hides the problem.
  • If the model looks flat and plastic, the generator made only a color texture. Add roughness and a normal map, or set Roughness on the StandardMaterial3D by hand.
  • If shadows look painted on, the color texture has lighting baked (precomputed) in, which you even out before the bake (precompute).

03 // FORMAT

Why GLB suits Godot

Godot 4 imports glTF, .blend, FBX, OBJ and Collada files. GLB, the binary form of glTF, is the one to prefer for generated models, because it uses meters and +Y up like Godot, keeps PBR materials and textures in one file, and imports as a scene you can reimport after every fix.

04 // meshfx

meshfx for generated model to godot

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.

06 // FAQ

Generated models in Godot

All questions →

README.AI_GENERATED_MODEL_TO_GODOT
How do I optimize an AI generated model for Godot?

Cut it to your triangle budget, rebuild its UVs, compile the textures and export GLB. In Godot keep Generate LODs on and add a convex collision shape.

What is the best 3D model format for Godot?

GLB is the best choice because it uses meters and +Y up like Godot, carries PBR materials in one file and imports as a scene.

Why does my AI generated model look black or inside out in Godot?

Its normals point inward, so Godot back face culling hides the outer faces. Recalculate normals outside in your 3D editor and export again.

How do I fix missing UVs on an AI generated model for Godot?

Unwrap the cleaned mesh in your 3D editor and compile the original color onto the new UVs before export. Godot only builds lightmap UVs on import.

Explore meshfx outputs

Inspect compiled meshfx outputs and their reports. Hosted meshfx runs are available in the Playground.

All effects, guides and explainers →