AI 3D generators give you a model in a minute. Then you open it in an engine and it is 100k triangles with a messy UV layout. I wanted a quick way to make such a model game-ready without opening Blender, so I built one that runs in the browser.
Tool: AI 3D Model Fixer (free, no sign-up, the file never leaves your computer)
What it does
- Drop a GLB, glTF, OBJ, FBX or STL file.
- Pick a triangle target and turn on "New UV layout".
- Download a GLB with fewer triangles, a fresh UV layout and re-baked textures.
Numbers from one real test
I generated a turret with TRELLIS.2 on Hugging Face and ran it through the tool.
- 98,596 triangles went down to 7,746
- 4.7 MB went down to 1.5 MB
- It took about 3 seconds on a desktop GPU
- The result imported cleanly into Godot 4.7.1 with tangents and albedo, normal, roughness and metallic textures
That is one model on one machine. Yours will differ.
How it works
- Reduction: meshoptimizer simplifies the mesh.
- New UVs: xatlas (compiled to WASM) unwraps the reduced mesh.
- Re-bake: for every pixel of the new layout the tool finds the nearest point on the original dense mesh and copies colour, roughness, metallic and the surface normal. The lost detail comes back as a tangent-space normal map.
The bug that taught me the most
My first version passed every test on clean sample models. Then I tried a real AI model and it came out with zero triangles.
The cause: AI models are cut into thousands of small UV islands. Each island has its own copy of the vertices along its border. My code counted connected parts by vertex index, so it saw 3,635 "floating bits" and deleted them as debris. The whole model was debris.
The fix was to weld vertices by position first and only then look for loose parts. If you write mesh tools, test with ugly real input early. Clean samples hide this.
Limits
- The "New UV layout" step is built for static models. I have not tested it on rigged or animated ones.
- Very thin parts can break at low triangle counts.
- I checked Godot only. Unity and Unreal are not verified yet.
- The tool itself does not use AI. It is plain geometry code.
It is free with a daily limit. A paid tier lifts the limit.
If you try it on a model from Meshy, Tripo or another generator and it breaks, tell me what happened. That is the feedback I need most.
This post was written with AI assistance. The numbers come from my own test.
Top comments (0)