---
title: "How to clean up an AI-generated 3D model for games"
description: "Clean up a model from an AI 3D generator: delete fragments and hidden faces, weld, cut it to budget, rebuild UVs, precompute textures, set scale and pivot."
canonical: https://appliedmanifold.com/mesh/clean-up-ai-generated-model/
site: "Applied Manifold: The spatial compute cloud for 3D reality"
---

1.  [Home](https://appliedmanifold.com/)
2.  [meshfx](https://appliedmanifold.com/mesh/)
3.  Clean up a generated model

meshfx // GENERATED MODELS

# How to clean up an AI-generated 3D model for a game

You clean up a model from an AI 3D generator by fixing what generators tend to get wrong, in order: delete floating fragments and hidden inside faces, weld the mesh, cut the triangle count to your budget, rebuild the UVs, bake (precompute) the textures, then set scale and a base pivot before export.

[Get Free API Key](https://console.appliedmanifold.com/sign-in?next=/api-keys) [meshfx docs →](https://appliedmanifold.com/docs/mesh/)

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](https://appliedmanifold.com/playground/).

-   Repair the mesh before you reduce or retexture it
-   Expect fragments and fused parts
-   Paint out baked-in (precomputed) shadows

01 // WHAT YOU GET

## What a generated model usually arrives with

-   One fused surface, so a sword, the hand holding it and the sleeve cannot move apart.
-   Dense, even triangles, often far more than a game needs, spread the same over flat and detailed areas.
-   Small fragments floating near the model and faces hidden inside it.
-   UVs cut into hundreds of tiny islands, or none at all, and shadows painted into the color texture.
-   No real scale, and a pivot at the center of the bounding box instead of where the model stands.

02 // BY HAND

## Clean it up in your 3D editor

1.  Import the file, apply scale and rotation, and scale the model to real size next to a 1 m cube.
2.  Select by loose parts and delete the fragments that float away from the main body.
3.  Merge vertices by distance to weld cracks, then select non-manifold edges and fill or delete what the selection finds.
4.  Delete the interior faces left where the generator fused parts together.
5.  Decimate to your triangle budget, or [retopologize](https://appliedmanifold.com/mesh/retopology-ai-generated-model/) if the model will animate.
6.  Unwrap new UVs and bake (precompute) the original color, plus a normal map, onto the cleaned mesh.
7.  Move the origin to the base of the model, recalculate normals, and export GLB or FBX for your engine.

03 // BAKED (PRECOMPUTED) LIGHTING

## Remove the lighting painted into the texture

Many generated textures include shadows and highlights from a light that does not exist in your scene. In the engine they fight the scene's real lights, so a dark patch stays under the chin even in full sun. Paint out the strongest shadows and even out the brightness of the color texture in an image editor before you bake (precompute), then let the engine light the model.

04 // meshfx

## meshfx for clean up a generated model

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.

05 // RELATED

## Related pages

-   [Retopology for generated models AvailableWhy models from AI 3D generators have grid-like topology, when to decimate instead, and how to retopologize a generated character.](https://appliedmanifold.com/mesh/retopology-ai-generated-model/)
-   [Generated model to Godot AvailableBring a model from an AI 3D generator into Godot 4 as GLB, then set scale, LODs and collision in the import settings.](https://appliedmanifold.com/mesh/ai-generated-model-to-godot/)
-   [Generated model to Unity AvailableBring a model from an AI 3D generator into Unity as FBX, set the import options that matter, and rebuild its URP material.](https://appliedmanifold.com/mesh/ai-generated-model-to-unity/)
-   [meshfx repair AvailableRepair a broken mesh in order (loose parts, duplicate vertices, interior faces, holes, then normals) by hand in any 3D editor.](https://appliedmanifold.com/mesh/mesh-repair/)
-   [Fix missing UVs AvailableSpot missing or broken UVs, unwrap and pack them again by hand, and know when your engine needs a second UV set for lightmaps.](https://appliedmanifold.com/mesh/fix-missing-uvs/)
-   [Game-ready model AvailableA game-ready model fits its triangle budget and has clean geometry, UVs, precomputed textures, correct scale and pivot, LODs and collision.](https://appliedmanifold.com/learn/game-ready-model/)
-   [meshfxmeshfx reads an input model, repairs surface faults and compiles reduced GLB levels of detail for Godot, three.js or any glTF loader.](https://appliedmanifold.com/docs/mesh/)

[All pages in meshfx →](https://appliedmanifold.com/mesh/)

[← Collision in three.js](https://appliedmanifold.com/mesh/collision-mesh-threejs/)[Generated model to Godot →](https://appliedmanifold.com/mesh/ai-generated-model-to-godot/)

06 // FAQ

## Generated model cleanup questions

[All questions →](https://appliedmanifold.com/faq/)

**README.CLEAN\_UP\_AI\_GENERATED\_MODEL**

### How do I clean up an AI generated 3D model for a game?

Delete floating parts and interior faces, weld the mesh, reduce it to your budget, unwrap UVs and compile textures. Finish by setting scale and pivot before export.

### How do I remove floating parts from an AI generated mesh?

Select the main body, select everything linked to it, invert the selection and delete. Check the model from below where small fragments often hide.

### What is the best workflow for repairing AI generated 3D assets?

Repair first, then reduce, then retexture. Remove junk geometry and weld vertices, cut the triangle count, then rebuild UVs and compile textures onto the final mesh.

### How do I remove internal or overlapping geometry from an AI generated model?

Merge vertices by distance first so overlapping copies collapse, then select interior faces or hide the outer shell to delete them and fill any holes.

### What is a game ready model after cleanup?

A game ready model fits your triangle budget, has clean UVs and compiled textures, real world scale, a base pivot and a simple collision shape.

## Explore meshfx outputs

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

[Get Free API Key](https://console.appliedmanifold.com/sign-in?next=/api-keys) [meshfx →](https://appliedmanifold.com/docs/mesh/)

[All effects, guides and explainers →](https://appliedmanifold.com/effects/)
