FoliMesh

3D Vegetation for three.js

Light GLB vegetation for the web: load it with GLTFLoader, put the LOD meshes into THREE.LOD and your three.js scene has a forest that runs on laptops and phones.

By category

Made for GLTFLoader

Every FoliMesh asset is a single GLB file. GLTFLoader loads the meshes, materials and textures in one request, and each LOD level is a separate mesh inside the file.

LOD in three.js

Add LOD0–LOD3 to a THREE.LOD object with the distances you need. Far away, swap to the impostor or simply hide the tree. Triangle budgets per LOD keep the frame rate stable even on laptops.

Many trees, few draw calls

The geometry is clean and shared, so the same tree works with InstancedMesh or BatchedMesh. Export several seeds and instance each of them for a forest that does not repeat.

Small files for the web

Low-poly assets use vertex colour and no textures, so a whole forest weighs less than a single photo. Realistic trees use compact bark and leaf textures with alpha-tested leaves. Need it even smaller? The free GLB compressor on our site packs the geometry with Meshopt and the textures to WebP or KTX2 right in the browser.

Wind and shadows

The wind data sits in vertex attributes, so a few lines in onBeforeCompile are enough to sway the branches. Our blog has a full guide to forests in three.js: LOD, instancing, KTX2, shadows and wind.

Works in

Related

Frequently asked questions

How do I load the models in three.js?

Use GLTFLoader: the GLB file contains the meshes, materials, textures and every LOD level.

Does it work with THREE.LOD?

Yes. Each LOD is a separate mesh in the GLB, so you can add them to THREE.LOD with your own distances.

Can I use InstancedMesh?

Yes. Take the geometry and material of a LOD mesh and draw thousands of copies with InstancedMesh or BatchedMesh.

Are the files small enough for the web?

Yes. Low-poly assets have no textures at all, realistic trees use compact textures, and the free GLB compressor on our site shrinks them further.

Does it work with WebGPU?

Yes. GLB is renderer-independent, so the same files work with WebGLRenderer and WebGPURenderer.