FoliMesh

Trees for three.js

Each tree is a light GLB you load with GLTFLoader from three/addons; DRACOLoader or KTX2Loader only matter if a file actually uses those extensions. Every model ships LOD0–LOD3, so you pass the four meshes to THREE.LOD and switch them with lod.addLevel(mesh, distance) — the level then follows camera distance each frame on WebGLRenderer and WebGPURenderer. Leaves using glTF alphaMode MASK become material.alphaTest, and double-sided foliage is already set to side: THREE.DoubleSide.

The 14 trees cover forests, parks and villages: Oak, Scots Pine, Spruce, Birch, Weeping Willow, Aspen, Maple and Poplar for temperate maps, Olive, Cypress and Stone Pine for the Mediterranean, Acacia and Baobab for dry biomes. Pivots sit at the base. Draw thousands of copies with InstancedMesh or mix variations in one call with BatchedMesh; THREE.LOD is not per instance, so group instances by level per chunk. The invisible collision mesh goes to Rapier or cannon-es.

Models
49
Levels of detail
LOD0 – LOD3
Formats
GLB · FBX · OBJ

Using it in three.js

In three.js, load GLB with GLTFLoader from three/addons; add DRACOLoader or KTX2Loader only if a file uses those extensions.

  • Distance LOD: THREE.LOD with lod.addLevel(mesh, distance) for LOD0–LOD3; it switches levels by camera distance every frame.
  • Forests: InstancedMesh draws thousands of copies in one draw call, and BatchedMesh mixes several tree variations. THREE.LOD does not apply per instance, so group instances by LOD per chunk yourself.
  • Leaves: glTF alphaMode MASK becomes material.alphaTest, and double-sided materials get side: THREE.DoubleSide automatically.
  • Collision mesh: keep it invisible and pass it to a physics library such as Rapier or cannon-es.

Works with both WebGLRenderer and WebGPURenderer.

Other categories

Same in other styles

Same for other engines