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.

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.

  • 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.

06 // FAQ

3D scan cleanup questions

All questions →

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.

All effects, guides and explainers →