{"repo":"agargaro/instanced-mesh","free":true,"listed":false,"github":"https://github.com/agargaro/instanced-mesh","clone":"git clone https://github.com/agargaro/instanced-mesh.git","description":"Enhanced InstancedMesh with frustum culling, fast raycasting (using a BVH), sorting, visibility, LOD, skinning and more.","language":"TypeScript","stars":445,"topics":["bvh","frustum-culling","instances","performance","three-js","threejs","visibility","lod","shadow-lod","skinning"],"license":"MIT","category":"game-templates","readme_excerpt":"Three.ez - InstancedMesh2 Simplify your three.js application development with three.ez ! three.ez/batched-mesh-extensions - BatchedMesh extension methods and enhancements for better performance and usability InstancedMesh2 is an alternative version of InstancedMesh with enhanced features for performance and usability. - Dynamic capacity : add or remove instances seamlessly. - Object3D-like instances : use instances like Object3D with transforms and custom data. - Per-instance frustum culling : skip rendering for out-of-view instances. - Spatial indexing (dynamic BVH) : speed up raycasting and frustum culling. - Sorting : reduce overdraw and manage transparent objects efficiently. - Per-instance visibility : toggle visibility for each instance individually. - Per-instance opacity : set opacity for each instance individually. - Per-instance uniforms : assign unique shader data to individual instances. - Level of Detail (LOD) : dynamically adjust instance detail based on distance. - Shadow LOD : optimize shadow rendering with lower detail for distant instances. - Skinning : apply skeletal animations to instances for more complex and dynamic movements. 🧑‍💻 Live Examples Vanilla - Dynamic adding with BVH (thanks to Saumac) Using three.ez/main - 1kk static trees - Instances array dynamic - Sorting - Uniforms per instance - Dynamic BVH (no vite) - Fast raycasting - LOD - Shadow LOD - Skinning 3k instances - Dynamic adding with BVH - Skinning Using other libraries - Threlte - Tres.","default_branch":null,"files":null,"tree":[],"storefront":"/r/agargaro","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/agargaro/instanced-mesh/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}