FoliMesh

Rocks for three.js

Rock assets for the web arrive as GLB files you pull in with GLTFLoader from three/addons; DRACOLoader or KTX2Loader are only needed if a file actually uses those extensions. All 7 models here — Pebbles, Stone, Boulder, Rock Slab, Rock Scatter, Cliff, Cliff with Boulders — ship with LOD0–LOD3, so THREE.LOD and lod.addLevel(mesh, distance) switch levels by camera distance every frame with no extra wiring.

For dense scatter, InstancedMesh keeps thousands of copies in one draw call and BatchedMesh mixes several rock variations; because THREE.LOD is not applied per instance, group instances by LOD per chunk yourself. Keep the collision mesh invisible and hand it to Rapier or cannon-es. Runs on WebGLRenderer and WebGPURenderer.

Models
20
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