FoliMesh

3D Vegetation for Babylon.js

Vegetation for Babylon.js in GLB: import it with SceneLoader, attach the LOD levels with addLODLevel and build forests of thousands of trees that run in the browser.

By category

One file, one import

Babylon.js loads glTF natively. Import a FoliMesh GLB with SceneLoader.ImportMeshAsync and you get the meshes, materials and textures, with each LOD as its own mesh.

LOD with addLODLevel

Use LOD0 as the main mesh and attach LOD1–LOD3 with addLODLevel at the distances you need; pass null for the last distance to hide the tree beyond it. Triangle budgets per LOD keep large scenes smooth.

Instances for forests

The meshes work with instances and thin instances, so you can place thousands of trees with a handful of draw calls. Export several seeds of a species to avoid repetition.

Realistic or low-poly

Realistic trees come with bark and leaf textures for PBR materials, with alpha-tested leaves. Low-poly assets use vertex colour and need no textures at all, which keeps a web game light.

Smaller downloads

The free GLB compressor on our site packs geometry with Meshopt and textures to WebP or KTX2 right in the browser, and the LOD generator makes extra levels for any model you already have.

Works in

Related

Frequently asked questions

How do I import the models into Babylon.js?

Load the GLB with SceneLoader; meshes, materials and every LOD level are inside the file.

Can I use Babylon.js LOD?

Yes. Attach LOD1–LOD3 to the main mesh with addLODLevel at your own distances.

Do instances work?

Yes. The meshes work with instances and thin instances for large forests.

Do the leaves work with PBR materials?

Yes. Realistic trees come with bark and leaf textures for PBR materials, and the leaves use an alpha test.

How do I make the files smaller?

Use low-poly assets without textures, or run the GLB through the free compressor on our site: Meshopt for geometry, WebP or KTX2 for textures.