meshfx // LOD // GODOT

How to set up LOD in Godot 4

Godot 4 builds LODs (lower-detail versions of a mesh) for you when it imports a 3D scene, and switches between them by screen size with no setup. You tune them with lod_bias on the mesh node, and when you want to swap whole objects at set distances you use visibility ranges, which can also fade between them.

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.

  • Mesh LOD: automatic on import
  • Tune with lod_bias
  • Visibility ranges for whole objects

01 // meshfx LOD

Check and tune the automatic LODs

  1. Select the imported .glb, .gltf, .blend or .fbx file, check that Meshes > Generate LODs is on in the Import dock, and click Reimport after any change.
  2. Switch the viewport to Display Wireframe and move the camera away from the model to watch the mesh get lighter.
  3. Raise lod_bias on the MeshInstance3D above 1.0 to keep detail longer, or lower it to switch sooner.
  4. To shift every mesh at once, change Rendering > Mesh LOD > LOD Change > Threshold Pixels in Project Settings. Higher values use lower detail sooner, and 0 turns mesh LOD off.

02 // VISIBILITY RANGES

Swap whole objects with visibility ranges

Visibility ranges (Godot's HLOD) show or hide a node by camera distance. Use them when the far version is a different object, such as a building that becomes a simple block or a cluster of trees that becomes one merged mesh.

  • On the detailed node, set Visibility Range > End to the distance where it should disappear, for example 40 m.
  • On the far version, set Visibility Range > Begin to the same 40 m.
  • Give both an End Margin or Begin Margin of a few meters and set Fade Mode to Self, so the two cross-fade instead of popping.

03 // WHEN IT FALLS SHORT

When to make LODs yourself

Automatic LOD only simplifies the mesh it was given. Materials and draw calls stay the same, and it can round off detail you care about, such as a thin railing or a character's face. For those, make the levels in your 3D editor and switch them with visibility ranges, or turn Generate LODs off for that file.

Meshes you build in code do not get import LODs, so give them hand-made levels if they need them.

04 // meshfx

meshfx for lod in godot 4

meshfx reduces toward a triangle budget and makes LODs by count, ratio, explicit budgets or error. Each level reports measured distance, outline and faults. Godot 4 is the supported output target. Hosted meshfx runs are available in the Playground.

06 // FAQ

Godot LOD questions

All questions →

README.LOD_GODOT
Why is LOD not working in Godot?

Ensure Generate LODs is enabled in import settings, lod_bias is not set too high and Threshold Pixels is above zero.

How do I set LOD distance in Godot?

Use visibility ranges on GeometryInstance3D nodes to swap whole objects at exact camera distances or let import LODs switch by screen size.

What does LOD bias do in Godot?

The lod_bias property scales when a node drops detail, with values above 1.0 keeping detail longer and lower values switching sooner.

How do I stop LOD popping in Godot?

Enable fade modes on visibility ranges for whole object swaps or raise lod_bias so automatic mesh switches happen farther away.

Explore meshfx outputs

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

All effects, guides and explainers →