kit-lod.js
three.js and WebGL · Edit, render, publish · MIT
- What it does
Puts several quality tiers of one object into a single THREE.LOD with switch distances in meters and a hysteresis fraction so a slow orbit does not flicker, plus a blockout box for planning. In a draw-on-demand loop you must call lod.update(camera) yourself.
- Get it
const lod = lodFor({ T2: rich.group, T1: plain.group, T0: blockout(record).group }, { distances: { T2: 0, T1: 8.83, T0: 27.2 }, hysteresis: 0.08 }); scene.add(lod);
- Needs (the whole pack)
Nothing to read the skill. Python 3 for the catalog helpers. Node with pnpm or npm for the starter and the examples. Optional: Playwright for its capture script, and Blender 4.2 or newer for its baked hero tier. The six anatomy studies need 169 MB of meshes fetched separately.
- License
MIT
- From