---
title: "How to clean up a 3D scan for a game | Spatial Compiler"
description: "Turn a photogrammetry scan into a game model: cut away the ground and floaters, fill holes, build a light mesh and precompute its color and detail."
canonical: https://appliedmanifold.com/mesh/clean-up-3d-scan/
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 3D scan

meshfx // SCANS

# How to clean up a 3D scan for use in a game

You turn a photogrammetry scan (a model rebuilt from many photos) into a game model by cutting away the ground and floating bits, filling the holes the camera missed, then building a light mesh over the dense scan and baking (precomputing) the scan's color and surface detail onto it. Set the scale from a known measurement before you 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/).

-   Keep the raw scan for baking (precomputing)
-   Cut the ground, fill the holes
-   Bake (precompute) color, normal and occlusion

01 // WHAT A SCAN GIVES YOU

## What a raw scan looks like

A photogrammetry scan arrives as one dense, noisy triangle mesh, often millions of triangles, with a color texture split into many small islands. It includes whatever the camera saw around the object, such as the table or ground under it, and it has holes wherever the camera could not see, usually underneath and in deep creases.

The color texture also holds the light from the day of the shoot, so a shadow under the object stays in the texture wherever you place it in your scene.

02 // BY HAND

## Clean the scan step by step

1.  Save the raw scan as its own file, since every bake (precompute) later reads from it.
2.  Cut away the ground plane and anything else around the object, then delete loose floating pieces.
3.  Fill the holes. Close small ones with your editor's fill command, and cap or bridge a large opening such as the underside, since nobody sees it.
4.  Smooth noisy flat areas lightly, keeping away from edges and fine detail.
5.  Build the game mesh: decimate a copy to your budget for props, or retopologize it for anything that deforms.
6.  Unwrap the game mesh and bake (precompute) color, normal and ambient occlusion from the raw scan onto it.
7.  Scale the model from a real measurement, such as a door height or a ruler in the photos, and set the pivot at the base.

03 // BAKED (PRECOMPUTED) LIGHT

## Take the shoot's lighting out of the texture

Shooting under even, overcast light leaves the least shadow in the texture. For a scan you already have, bake (precompute) an ambient occlusion map from the scan and use it to brighten the dark creases in the color texture, then let the engine's lights and its own occlusion add the shadows back.

04 // meshfx

## meshfx for clean up a 3d scan

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

-   [Splat to mesh AvailableWhy a Gaussian splat capture has no surface, how to rebuild a game mesh from it by hand, and when to keep the splat instead.](https://appliedmanifold.com/mesh/splat-to-mesh/)
-   [Clean up a generated model AvailableTurn a model from an AI 3D generator into a game asset: remove junk geometry, weld, reduce, rebuild UVs, bake (precompute) again, set scale and pivot.](https://appliedmanifold.com/mesh/clean-up-ai-generated-model/)
-   [Bake (precompute) high to low poly AvailableBake (precompute) a high-poly model's surface onto a low-poly game mesh as normal, color and occlusion maps, and fix the usual bake (precompute) errors.](https://appliedmanifold.com/mesh/bake-high-to-low-poly/)
-   [Fill mesh holes AvailableClose mesh holes by hand with a single face, a grid fill or a bridge between edge loops, then fix normals and UVs.](https://appliedmanifold.com/mesh/fill-mesh-holes/)
-   [Retopology AvailableRebuild a dense or messy model as clean quads that keep its shape, then unwrap it and bake (precompute) the detail back, by hand in any 3D editor.](https://appliedmanifold.com/mesh/retopology/)
-   [Texture baking AvailableTexture baking renders detail into textures, such as a high-poly model's shape into a normal map for a low-poly game model.](https://appliedmanifold.com/learn/texture-baking/)
-   [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/)

[← Generated model to Roblox](https://appliedmanifold.com/mesh/ai-generated-model-to-roblox/)[Splat to mesh →](https://appliedmanifold.com/mesh/splat-to-mesh/)

06 // FAQ

## 3D scan cleanup questions

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

**README.CLEAN\_UP\_3D\_SCAN**

### How do I clean up topology from a 3D scan?

Clean the scan surface first by cutting, filling and smoothing, then decimate a copy for props or retopologize it for anything that deforms.

### What is the best retopology workflow for scanned 3D models?

Clean the scan, build the new mesh over it with surface snapping, then unwrap and compile color and normals from the raw scan.

### How do I repair a large hole in a scanned 3D model?

Bridge or fill it with a few large faces, then add loops to match surrounding density and smooth the patch. Underside holes can usually be capped flat.

### How do I compile a 3D scan detail onto a light model?

Line the clean light mesh up with the raw scan, set a cage that covers the gap and compile normal, color and ambient occlusion maps.

## 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/)
