# \#instancedmesh

**URL:** https://discourse.threejs.org/tag/instancedmesh/1152.md

[Latest](https://discourse.threejs.org/latest.md) · [Categories](https://discourse.threejs.org/categories.md) · [Tags](https://discourse.threejs.org/tags.md)

---

## [Three.ez/InstancedMesh2 - Enhanced InstancedMesh with frustum culling, fast raycasting (BVH), sorting, visibility management, LOD, skinning and more](https://discourse.threejs.org/t/three-ez-instancedmesh2-enhanced-instancedmesh-with-frustum-culling-fast-raycasting-bvh-sorting-visibility-management-lod-skinning-and-more/69344)

<div class="topic-metadata">

**Author:** [@agargaro](https://discourse.threejs.org/u/agargaro)\
**Replies:** 13\
**Last updated:** [September 22, 2026, 5:36pm UTC](https://discourse.threejs.org/t/three-ez-instancedmesh2-enhanced-instancedmesh-with-frustum-culling-fast-raycasting-bvh-sorting-visibility-management-lod-skinning-and-more/69344 "2026-09-22T17:36:05Z")

</div>

Three.ez - InstancedMesh2 Simplify your three.js application development with three.ez! InstancedMesh2 is an alternative version of InstancedMesh with enhanced features for performance an…

---

## [Soda Vending Machines](https://discourse.threejs.org/t/soda-vending-machines/93720)

<div class="topic-metadata">

**Author:** [@prisoner849](https://discourse.threejs.org/u/prisoner849)\
**Replies:** 3\
**Last updated:** [August 25, 2026, 5:14am UTC](https://discourse.threejs.org/t/soda-vending-machines/93720 "2026-08-25T05:14:21Z")

</div>

Hi community! A bunch of instanced vending machines with (sort of) soda :sweat\_smile: Picture: Demo: Sketch

---

## [Is this a bug? Very different BoundingSphere values between Points and InstancedMesh objects, even though they are using the same point/instance locations](https://discourse.threejs.org/t/is-this-a-bug-very-different-boundingsphere-values-between-points-and-instancedmesh-objects-even-though-they-are-using-the-same-point-instance-locations/89715)

<div class="topic-metadata">

**Author:** [@torrent](https://discourse.threejs.org/u/torrent)\
**Replies:** 2\
**Last updated:** [February 8, 2026, 6:03pm UTC](https://discourse.threejs.org/t/is-this-a-bug-very-different-boundingsphere-values-between-points-and-instancedmesh-objects-even-though-they-are-using-the-same-point-instance-locations/89715 "2026-02-08T18:03:56Z")

</div>

In three.js, I have a Points object and an InstancedMesh object. They both contain points/instances at the following locations: const pointsData = \[ { x: -7505.97314453125, y: 182.7720489501953, z: 6319.98291015625 },…

---

## [Will there ever be a "material.instancePositionNode" node?](https://discourse.threejs.org/t/will-there-ever-be-a-material-instancepositionnode-node/89461)

<div class="topic-metadata">

**Author:** [@torrent](https://discourse.threejs.org/u/torrent)\
**Replies:** 1\
**Last updated:** [January 27, 2026, 4:13pm UTC](https://discourse.threejs.org/t/will-there-ever-be-a-material-instancepositionnode-node/89461 "2026-01-27T16:13:41Z")

</div>

@Mugen87 @sunag I regularly see devs in the three.js community asking for a way to either directly access the instance matrix in TSL for an instance in an InstancedMesh, or simply just the ability to access positionLoca…

---

## [Binary Helix \[CurvePath\]](https://discourse.threejs.org/t/binary-helix-curvepath/88032)

<div class="topic-metadata">

**Author:** [@prisoner849](https://discourse.threejs.org/u/prisoner849)\
**Replies:** 2\
**Last updated:** [November 11, 2025, 6:19pm UTC](https://discourse.threejs.org/t/binary-helix-curvepath/88032 "2025-11-11T18:19:59Z")

</div>

Hi community! Video: Demo: https://codepen.io/prisoner849/full/emJqMzJ I wanted to build a binary helix of instances randomly positioned on it. CurvePath worked well for this purpose.

---

## [Unreal. Fragrances](https://discourse.threejs.org/t/unreal-fragrances/87400)

<div class="topic-metadata">

**Author:** [@prisoner849](https://discourse.threejs.org/u/prisoner849)\
**Replies:** 2\
**Last updated:** [October 7, 2025, 6:20pm UTC](https://discourse.threejs.org/t/unreal-fragrances/87400 "2025-10-07T18:20:08Z")

</div>

Hi community! If games have fragrance lines. What it would look like? Here is Unreal. Picture: Demo: https://codepen.io/prisoner849/full/azveyRL This is just a pure fantasy about the topic. I wanted to play with M…

---

## ["lookat" / "billboard" vertex shader for InstancedMesh instances?](https://discourse.threejs.org/t/lookat-billboard-vertex-shader-for-instancedmesh-instances/86227)

<div class="topic-metadata">

**Author:** [@torrent](https://discourse.threejs.org/u/torrent)\
**Replies:** 7\
**Last updated:** [August 16, 2025, 11:54pm UTC](https://discourse.threejs.org/t/lookat-billboard-vertex-shader-for-instancedmesh-instances/86227 "2025-08-16T23:54:41Z")

</div>

I have a large InstancedMesh object with many simple geometry instances. I would like to write a vertex shader in TSL that makes each instance always face the camera, like billboard sprites do. The following TSL node wo…

---

## [What is the BEST way to render thousands of foliage meshes? See screenshot](https://discourse.threejs.org/t/what-is-the-best-way-to-render-thousands-of-foliage-meshes-see-screenshot/86072)

<div class="topic-metadata">

**Author:** [@torrent](https://discourse.threejs.org/u/torrent)\
**Replies:** 1\
**Last updated:** [August 10, 2025, 5:49pm UTC](https://discourse.threejs.org/t/what-is-the-best-way-to-render-thousands-of-foliage-meshes-see-screenshot/86072 "2025-08-10T17:49:12Z")

</div>

I am working on a three.js project with multiplayer networking. It’s open world survival, using the Rapier.js physics engine. I have optimized the hell out of everything I can think of. I am aggressively using Instanced…

---

## [Moving normalMap on InstancedMesh with onBeforeCompile](https://discourse.threejs.org/t/moving-normalmap-on-instancedmesh-with-onbeforecompile/85500)

<div class="topic-metadata">

**Author:** [@Ahlecss](https://discourse.threejs.org/u/Ahlecss)\
**Replies:** 2\
**Last updated:** [July 26, 2025, 12:24am UTC](https://discourse.threejs.org/t/moving-normalmap-on-instancedmesh-with-onbeforecompile/85500 "2025-07-26T00:24:16Z")

</div>

Hey ! Hope you are doing well. I’ve currently a 3D Model, with an atlas texture (3 textures side by side), that I offset in my onBeforeCompile accordingly to what I want. The problem is : I see the normalMap still in …

---

## [Ideas on performing fast per-instance frustum culling on InstancedMesh](https://discourse.threejs.org/t/ideas-on-performing-fast-per-instance-frustum-culling-on-instancedmesh/85156)

<div class="topic-metadata">

**Author:** [@kikedao](https://discourse.threejs.org/u/kikedao)\
**Replies:** 14\
**Last updated:** [July 21, 2025, 7:35pm UTC](https://discourse.threejs.org/t/ideas-on-performing-fast-per-instance-frustum-culling-on-instancedmesh/85156 "2025-07-21T19:35:03Z")

</div>

Hi all ! I would like to ask the forum about advice on how to perform frustum culling on the instances of an InstancedMesh. I know it’s a feature not supported natively by three.js, but I have some intuition that ‘some…

---

## [Markers with numbers](https://discourse.threejs.org/t/markers-with-numbers/81468)

<div class="topic-metadata">

**Author:** [@prisoner849](https://discourse.threejs.org/u/prisoner849)\
**Replies:** 1\
**Last updated:** [April 21, 2025, 7:49pm UTC](https://discourse.threejs.org/t/markers-with-numbers/81468 "2025-04-21T19:49:41Z")

</div>

Hi community! During my conversation with @vasilii about some project, I had an idea to make markers with numbers (up to 5 digits), combining numbers from a generated texture atlas. Here is my attempt with this idea. V…

---

## [Ray intersection on instencedMesh that has multiple morph targets](https://discourse.threejs.org/t/ray-intersection-on-instencedmesh-that-has-multiple-morph-targets/81181)

<div class="topic-metadata">

**Author:** [@Polcsi](https://discourse.threejs.org/u/Polcsi)\
**Replies:** 1\
**Last updated:** [April 14, 2025, 5:13pm UTC](https://discourse.threejs.org/t/ray-intersection-on-instencedmesh-that-has-multiple-morph-targets/81181 "2025-04-14T17:13:10Z")

</div>

I would like to create an instancedMesh that can handle morphing. I need morph targets because each instance should have different shape so morph targets seems handy. Also each instance should detect rays because I need …

---

## [Use array of material(Same material) on InstancedMesh and change some material later to change the behaviour with light (Not to get and cast shadow)](https://discourse.threejs.org/t/use-array-of-material-same-material-on-instancedmesh-and-change-some-material-later-to-change-the-behaviour-with-light-not-to-get-and-cast-shadow/80876)

<div class="topic-metadata">

**Author:** [@Abhishek\_Chokra](https://discourse.threejs.org/u/Abhishek_Chokra)\
**Replies:** 1\
**Last updated:** [April 8, 2025, 1:26pm UTC](https://discourse.threejs.org/t/use-array-of-material-same-material-on-instancedmesh-and-change-some-material-later-to-change-the-behaviour-with-light-not-to-get-and-cast-shadow/80876 "2025-04-08T13:26:07Z")

</div>

Hi Community, So, I’m trying to create an InstancedMesh by giving array of materials. Size of array is same as size of InstancedMesh. There is no texture visible on canvas it is just transparent with no errors. The age…

---

## [Instanced particle morph animation](https://discourse.threejs.org/t/instanced-particle-morph-animation/56777)

<div class="topic-metadata">

**Author:** [@unni\_krishnan](https://discourse.threejs.org/u/unni_krishnan)\
**Replies:** 8\
**Last updated:** [December 14, 2024, 6:27am UTC](https://discourse.threejs.org/t/instanced-particle-morph-animation/56777 "2024-12-14T06:27:14Z")

</div>

const color = new THREE.Color(); const sphereGeometry = new THREE.SphereGeometry(0.008, 16, 16); const particles = new THREE.InstancedMesh( sphereGeometry, new THREE.MeshStandardMaterial(), 8000…

---

## [InstancedMesh: Set face color for a specific instance](https://discourse.threejs.org/t/instancedmesh-set-face-color-for-a-specific-instance/68421)

<div class="topic-metadata">

**Author:** [@AliakseiV](https://discourse.threejs.org/u/AliakseiV)\
**Replies:** 7\
**Last updated:** [October 17, 2024, 12:37pm UTC](https://discourse.threejs.org/t/instancedmesh-set-face-color-for-a-specific-instance/68421 "2024-10-17T12:37:25Z")

</div>

Hi, documentation says that you can change color of a specific instance using .setColorAt( index : Integer, color : Color) method. But what if I need to change color only for a face (set of faces) of a specific instance?…

---

## [Can I draw many InstancedMeshes using BatchedMesh](https://discourse.threejs.org/t/can-i-draw-many-instancedmeshes-using-batchedmesh/71077)

<div class="topic-metadata">

**Author:** [@ingun37](https://discourse.threejs.org/u/ingun37)\
**Replies:** 3\
**Last updated:** [September 24, 2024, 8:52am UTC](https://discourse.threejs.org/t/can-i-draw-many-instancedmeshes-using-batchedmesh/71077 "2024-09-24T08:52:26Z")

</div>

I need to draw many InstancedMeshes that use the same material. Can I somehow use batch rendering in this case? I guess I can’t directly use BatchedMesh but is there a work around?

---

## [glTF instanced meshes not visible](https://discourse.threejs.org/t/gltf-instanced-meshes-not-visible/70725)

<div class="topic-metadata">

**Author:** [@RussoDaFederal](https://discourse.threejs.org/u/RussoDaFederal)\
**Replies:** 2\
**Last updated:** [September 17, 2024, 3:38am UTC](https://discourse.threejs.org/t/gltf-instanced-meshes-not-visible/70725 "2024-09-17T03:38:02Z")

</div>

I’m trying to add instanced meshes to existing meshes created with glTF loader in a 3x3 grid fashion, with the original mesh at the center. For some reason, however, the instanced meshes are not visible when I add them t…

---

## [How to optimize draw calls in Three.js when updating polyline in real-time?](https://discourse.threejs.org/t/how-to-optimize-draw-calls-in-three-js-when-updating-polyline-in-real-time/69203)

<div class="topic-metadata">

**Author:** [@wc19950724](https://discourse.threejs.org/u/wc19950724)\
**Replies:** 1\
**Last updated:** [August 12, 2024, 11:27pm UTC](https://discourse.threejs.org/t/how-to-optimize-draw-calls-in-three-js-when-updating-polyline-in-real-time/69203 "2024-08-12T23:27:12Z")

</div>

I’m working on a Three.js demo that simulates a car driving and dynamically visualizes its surrounding environment in real-time. To maintain smooth performance, the update method is triggered frequently in each render lo…

---

## [MeshSize from 2d UV](https://discourse.threejs.org/t/meshsize-from-2d-uv/67047)

<div class="topic-metadata">

**Author:** [@Parisa\_Shahbazi](https://discourse.threejs.org/u/Parisa_Shahbazi)\
**Replies:** 3\
**Last updated:** [June 20, 2024, 7:31am UTC](https://discourse.threejs.org/t/meshsize-from-2d-uv/67047 "2024-06-20T07:31:46Z")

</div>

Hi .Is there any way to find the width,height of each meshes like when the model is unwrapped?I calculated the width and height of mesh by bounding box but it is smaller than when we check unwrap in 3d softwares and 2d P…

---

## [Will TSL work with SVGRenderer?](https://discourse.threejs.org/t/will-tsl-work-with-svgrenderer/66543)

<div class="topic-metadata">

**Author:** [@oldsegotia](https://discourse.threejs.org/u/oldsegotia)\
**Replies:** 4\
**Last updated:** [June 7, 2024, 5:52pm UTC](https://discourse.threejs.org/t/will-tsl-work-with-svgrenderer/66543 "2024-06-07T17:52:38Z")

</div>

Hi, I’m just wondering if TSL will ever work with SVGRenderer? Or will this always be the case per the docs: There are, however, some important limitations with SVGRenderer: No advanced shading No texture support No …

---

## [How to get a normals of certain instance of instancedMesh](https://discourse.threejs.org/t/how-to-get-a-normals-of-certain-instance-of-instancedmesh/65254)

<div class="topic-metadata">

**Author:** [@Arlight](https://discourse.threejs.org/u/Arlight)\
**Replies:** 4\
**Last updated:** [May 13, 2024, 2:40pm UTC](https://discourse.threejs.org/t/how-to-get-a-normals-of-certain-instance-of-instancedmesh/65254 "2024-05-13T14:40:57Z")

</div>

In my app i need to reflect some objects around target object. Because this objects identical, and for performance reason also, i use the instancedMesh object. For perform reflection I scaled the matrix of a certain ins…

---

## [Letterfall \[on terrain\]](https://discourse.threejs.org/t/letterfall-on-terrain/64484)

<div class="topic-metadata">

**Author:** [@prisoner849](https://discourse.threejs.org/u/prisoner849)\
**Replies:** 4\
**Last updated:** [May 3, 2024, 6:43pm UTC](https://discourse.threejs.org/t/letterfall-on-terrain/64484 "2024-05-03T18:43:58Z")

</div>

Hi community! Picture: Demo: https://codepen.io/prisoner849/full/vYMvpXX This is an attempt to make a bunch of quad instances, with letters from a texture atlas, to look like a terrain.

---

## [InstancedMesh，How to change the vertex color of an instance](https://discourse.threejs.org/t/instancedmesh-how-to-change-the-vertex-color-of-an-instance/63562)

<div class="topic-metadata">

**Author:** [@luka\_cui](https://discourse.threejs.org/u/luka_cui)\
**Replies:** 3\
**Last updated:** [April 6, 2024, 4:33pm UTC](https://discourse.threejs.org/t/instancedmesh-how-to-change-the-vertex-color-of-an-instance/63562 "2024-04-06T16:33:22Z")

</div>

Hello, I have created multiple instances using InstancedMesh, and I want to change the color of some vertices in one instance without affecting other instances, I tried the method, but it didn’t work const geometry = ne…

---

## [Die Digitaluhr / The digital clock](https://discourse.threejs.org/t/die-digitaluhr-the-digital-clock/62748)

<div class="topic-metadata">

**Author:** [@prisoner849](https://discourse.threejs.org/u/prisoner849)\
**Replies:** 5\
**Last updated:** [March 18, 2024, 3:57pm UTC](https://discourse.threejs.org/t/die-digitaluhr-the-digital-clock/62748 "2024-03-18T15:57:34Z")

</div>

Hi community! Video: Demo: https://codepen.io/prisoner849/full/wvZGjBj It’s all started with this post: Apply thickness to THREE.TubeGeometry for border - #5 by prisoner849, and ended up with this funky device …

---

## [Coordinate issue with Threejs + mapbox. It should be an easy task, but I can't](https://discourse.threejs.org/t/coordinate-issue-with-threejs-mapbox-it-should-be-an-easy-task-but-i-cant/60650)

<div class="topic-metadata">

**Author:** [@Federico\_Marcantognini](https://discourse.threejs.org/u/Federico_Marcantognini)\
**Replies:** 2\
**Last updated:** [January 24, 2024, 7:10am UTC](https://discourse.threejs.org/t/coordinate-issue-with-threejs-mapbox-it-should-be-an-easy-task-but-i-cant/60650 "2024-01-24T07:10:36Z")

</div>

I am struggling with the position of multiple boxgeometry instances with instancedMesh on a mapbox/maplibre map. Goal: Adding several geometry instances each with specific xyz or lat-long coordinates (I have both coordi…

---

## [\[Solved\] InstancedMesh dissapeared because of frustum](https://discourse.threejs.org/t/solved-instancedmesh-dissapeared-because-of-frustum/53651)

<div class="topic-metadata">

**Author:** [@bobcat](https://discourse.threejs.org/u/bobcat)\
**Replies:** 3\
**Last updated:** [December 7, 2023, 7:29am UTC](https://discourse.threejs.org/t/solved-instancedmesh-dissapeared-because-of-frustum/53651 "2023-12-07T07:29:15Z")

</div>

Hello, Is there something mystery with InstancedMesh? It’s working perfect until it went to disappeared when camera position at -100 and 300 neither x, or z. Feel like weird there. I’m using React Three Fiber (r3f), tr…

---

## [How does one use Drei Instancing with Merged?](https://discourse.threejs.org/t/how-does-one-use-drei-instancing-with-merged/58850)

<div class="topic-metadata">

**Author:** [@Ralph\_gui](https://discourse.threejs.org/u/Ralph_gui)\
**Replies:** 0\
**Last updated:** [December 3, 2023, 11:19pm UTC](https://discourse.threejs.org/t/how-does-one-use-drei-instancing-with-merged/58850 "2023-12-03T23:19:10Z")

</div>

I’ve been trying to instance my imported gltf and I managed tto use Merged from drei to piece the nodes together. However, Ii can’t see to instances it. I tried following the shoes example, but that example is using one …

---

## [Applying morphTargetInfluences(Shape keys) to InstancedMesh](https://discourse.threejs.org/t/applying-morphtargetinfluences-shape-keys-to-instancedmesh/58593)

<div class="topic-metadata">

**Author:** [@Evan\_Jin](https://discourse.threejs.org/u/Evan_Jin)\
**Replies:** 4\
**Last updated:** [November 29, 2023, 5:08am UTC](https://discourse.threejs.org/t/applying-morphtargetinfluences-shape-keys-to-instancedmesh/58593 "2023-11-29T05:08:48Z")

</div>

My goal is to make instances of a single glb (like 1,000 counts) all looking different using morphTargetInfluences. So I made InstancedMesh in three.js and put glb geometry having morphTargetInfluences and then finally …

---

## [Drawing InstancedMesh with an offset](https://discourse.threejs.org/t/drawing-instancedmesh-with-an-offset/58495)

<div class="topic-metadata">

**Author:** [@TenHands](https://discourse.threejs.org/u/TenHands)\
**Replies:** 5\
**Last updated:** [November 24, 2023, 11:25am UTC](https://discourse.threejs.org/t/drawing-instancedmesh-with-an-offset/58495 "2023-11-24T11:25:50Z")

</div>

Hello, I’m curious if it’s somehow possible to specify an offset inside the instanceMatrix attribute of a InstancedMesh so that rendering the instances start from there. Here’s a pen showing what I mean. Essentially I …

---

## [How to change static to dynamic with instances on react with threejs and cannonjs](https://discourse.threejs.org/t/how-to-change-static-to-dynamic-with-instances-on-react-with-threejs-and-cannonjs/47733)

<div class="topic-metadata">

**Author:** [@espace3d](https://discourse.threejs.org/u/espace3d)\
**Replies:** 15\
**Last updated:** [February 12, 2023, 6:59pm UTC](https://discourse.threejs.org/t/how-to-change-static-to-dynamic-with-instances-on-react-with-threejs-and-cannonjs/47733 "2023-02-12T18:59:08Z")

</div>

Hi, I would like that when the mouse passes over my red instance, it turns into a dynamic body and falls to the ground. What am I doing wrong because my code doesn’t work?

[Next page](https://discourse.threejs.org/tag/instancedmesh/1152.md?match_all_tags=true&page=1&tags%5B%5D=instancedmesh)
