FoliMesh

Trees with LOD for Games

Every FoliMesh tree has four levels of detail fitted to the triangle budgets you choose, plus a two-triangle impostor for the far distance — built by the generator, not by decimating a mesh.

What LOD gives you

Level of detail swaps a model for a cheaper one as it moves away from the camera. For vegetation it is the difference between a forest of fifty trees and a forest of five thousand.

How FoliMesh builds LODs

Instead of decimating a finished mesh, the generator rebuilds the tree for each LOD: fewer branch segments, fewer and larger leaf cards, thin twigs dropped first. Each level is fitted to a triangle budget and keeps the silhouette and the crown volume, so the switch is hard to notice.

Typical budgets

LOD Use Triangles
LOD0 close-up 8–20k
LOD1 mid range 2–6k
LOD2 far 500–1.5k
LOD3 very far 100–500
Impostor horizon 2

You can change every budget before export and see the triangle count of each level in the editor.

The impostor

Past the last LOD the tree becomes a card that always faces the camera, rendered from the same tree, so the forest on the horizon matches the trees up close.

In your engine

LOD Groups in Unity, LODs on static meshes in Unreal and visibility ranges in Godot come pre-configured in the packages. In GLB every level is a separate mesh for THREE.LOD, Babylon.js addLODLevel or Bevy visibility ranges.

Related

Frequently asked questions

How many LODs does each tree have?

Four: LOD0 to LOD3, plus an impostor for the far distance.

Can I set my own triangle budget?

Yes. You set the budget for each LOD and the generator fits the tree to it.

Do LODs pop when they switch?

Each LOD keeps the silhouette and crown volume, which makes transitions much less visible; you can add a dithered cross-fade in your engine.

Why not just decimate the mesh?

Decimation tears leaf cards and thin branches. Rebuilding the tree per LOD removes small details first and keeps the shape.

Are LODs set up in the engine packages?

Yes. Unity LOD Groups, Unreal static mesh LODs and Godot visibility ranges are configured with the switch distances.