Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mesh Diet

Reduce the polygon count of a 3D model and repair its PBR texture maps, in your browser. Nothing is uploaded — every file stays on your machine.

No install, no sign-up, no upload. Open it and drop in a model.


How to use it

  1. Drop a model anywhere on the page, or press Open file…
  2. Pick a mode and how much to keep.
  3. Press Decimate.
  4. Compare — switch between Original, Result and Side by side, and turn on the wireframe to see the polygons.
  5. Download in the format you need.

Left-drag to rotate · wheel to zoom · right-drag to pan.

The two modes

Fast keeps the model's original UVs and texture maps. The simplifier treats UV and normal distortion as error, so the texture layout survives the reduction and nothing needs rebaking. Use it for game-ready assets that already have sane UVs. Sub-second, even on a million triangles.

Rebuild melts every part into one watertight shell, reduces that, generates fresh UVs and re-bakes all the maps by sampling the original surface. Use it for CAD, scan and KeyShot exports — anything with stacked shells, projected labels, or parts carrying no UVs at all. Takes longer, and handles files Fast cannot.

The app suggests the right one when you load a file.

It also repairs textures

Whichever mode you pick, it finds and fixes problems that quietly ruin how a model looks:

  • normal maps whose blue channel was written flat instead of √(1−x²−y²)
  • data maps mistakenly tagged as colour
  • dead alpha channels and unused vertex attributes
  • surfaces that no renderer can draw, left in by an exporter

Everything it finds is listed in plain language, next to what it did about it.

You can run the repair on its own with Repair textures only — full resolution, nothing reduced.

Formats

Load Save
GLB / glTF
USD / USDZ
OBJ ✓ with MTL and maps, zipped
STL / PLY ✓ geometry only
FBX

Draco-compressed files load too.

FBX is read but not written. There is no dependable FBX writer that runs in a browser, and a half-working one that produces files Maya opens wrong is worse than an honest absence.

Privacy

The app makes no network requests after it loads. Your model is never uploaded, never stored, and is gone when you close the tab. There is no analytics, no telemetry and no account.

Third-party code

Bundled in vendor/, unmodified:

The sample model

The app opens with Silver-gilt bowl, Cypriot, ca. 725–675 BCE — The Metropolitan Museum of Art, accession 74.51.4554, released under Open Access (CC0), and reduced here using this app. Full credit in assets/CREDITS.md.

Licence

MIT — see LICENSE. Use it, change it, ship it, sell it; just keep the copyright notice. The bundled libraries and the sample model keep their own licences, listed above.

About

Reduce polygon count and repair PBR texture maps, entirely in the browser. Nothing is uploaded.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages