DOCS // meshfx

meshfx docs Available

meshfx reads an input model, repairs surface faults and compiles reduced GLB levels of detail for Godot, three.js or any glTF loader.

Contents4 sections
  1. Measure, repair and reduce a model
  2. Reference and examples
  3. Build stages
  4. Questions

meshfx runs on the hosted API: try it in the Playground.

Measure, repair and reduce a model

meshfx reads glTF and GLB, including meshopt compression, OBJ, STL and PLY with PNG and JPEG textures. Its report measures holes, flipped faces and non-manifold edges.

Each of nine repair steps is checked against the source and undone with a warning if it moves the surface too far. Triangle budgets and LOD settings control reduction. Each level reports measured distance, outline and faults, with a switch distance.

The hosted bake keeps the source UVs and existing vertex colours. On a sand3d assembly, it keeps a separate LOD chain per rigid part and writes a Godot joint controller.

Namaqualand rock scan compiled into three levels of detail
Four textured stones reduced from 85,716 triangles to 24,998, 12,498 and 6,250 triangles.

Reference and examples

Build stages

  1. Read, measure, and write
  2. Repair
  3. Simplify and LODs

Questions

What model and texture formats does meshfx accept?

meshfx reads glTF, GLB including meshopt compression, OBJ, STL and PLY models with PNG and JPEG textures.

How does meshfx check repairs during a compile?

meshfx checks each of its nine repair steps against the source surface and undoes any step that moves the surface too far.

What does meshfx output for an articulated assembly?

meshfx keeps a separate level of detail chain for each rigid part and writes GLB files, layout data and a Godot joint controller.