LEARN // meshfx
What is LOD
LOD, short for level of detail, means keeping several versions of a model with fewer and fewer triangles and letting your engine swap to a lighter one as the object gets smaller on screen. A tree might use 8,000 triangles up close and 500 at the far end of the map, and players rarely notice the swap.
pyrofx effects work today, and new accounts start with $5 of usage.
meshfx measures faults, checks repairs and makes LODs for a triangle budget. meshfx runs on the hosted API: try it in the Playground.
- 3 or 4 levels is a common start
- About half the triangles per level
- Switch by screen size or distance
- meshfx: measured outputs; hosted availability shown separately
01 // HOW IT WORKS
How the engine switches LOD levels
LOD0 is the full model, and each next level drops roughly half the triangles. The engine switches levels at thresholds, either a distance or the share of screen height the object covers. Screen size is the better measure, because it stays right when the camera zooms or the field of view changes.
A swap can show as a pop, a sudden change in shape or shading. Keep the silhouette close between levels, compile normals from the full model onto every level, and crossfade or dither the swap where your engine supports it.
02 // IN YOUR ENGINE
LOD in each engine
- Godot 4: generates mesh LODs on import by default, tuned with
lod_biason the node. Visibility ranges switch between whole nodes (HLOD). - Unity: the LOD Group component, with a transition per level as a share of screen height, and Cross Fade as a fade mode.
- Unreal Engine: LOD settings and Reduction Settings in the Static Mesh Editor, with a screen size per level. Nanite renders dense static meshes without hand-made LODs.
- Roblox Studio:
RenderFidelityon a MeshPart (Automatic, Precise, Performance) picks the detail for you. - three.js:
THREE.LODwithaddLevel(mesh, distance).
03 // SPATIAL COMPILER
meshfx and level of detail (lod)
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.
How many LOD levels should a game asset have?
Three or four levels work for most props and characters. Small objects may need two, while large buildings may add a far level.
How much should I reduce triangle counts between LOD levels?
Cutting roughly half the triangles per level is a common start. Check each level at its switch distance and stop before the outline breaks.
How do I prevent visible popping when switching LOD levels?
Keep silhouettes close across levels, transfer normals from the full model, push switch distances farther out and enable engine crossfading or dithering.
How do I set screen size or distance thresholds for LODs?
Set screen height percentages in Unity LOD Group or screen size in Unreal Engine. In three.js, THREE.LOD switches by camera distance.
What is LOD bias in a game engine?
LOD bias is a multiplier on switch thresholds. Raising it keeps detailed levels longer, while lowering it switches to lighter meshes sooner.
Explore meshfx outputs
Inspect compiled meshfx outputs and their reports. Hosted meshfx runs are available in the Playground.