# \#thininstances

**URL:** https://forum.babylonjs.com/tag/thininstances/129.md

[Latest](https://forum.babylonjs.com/latest.md) · [Categories](https://forum.babylonjs.com/categories.md) · [Tags](https://forum.babylonjs.com/tags.md)

---

## [WebGPU non-compatibility mode: thinInstanceSetBuffer on a WGSL ShaderMaterial mesh leaves a stale render bundle ("used in submit while destroyed")](https://forum.babylonjs.com/t/webgpu-non-compatibility-mode-thininstancesetbuffer-on-a-wgsl-shadermaterial-mesh-leaves-a-stale-render-bundle-used-in-submit-while-destroyed/64385)

<div class="topic-metadata">

**Author:** [@tapanij](https://forum.babylonjs.com/u/tapanij)\
**Replies:** 0\
**Last updated:** [October 23, 2026, 11:30am UTC](https://forum.babylonjs.com/t/webgpu-non-compatibility-mode-thininstancesetbuffer-on-a-wgsl-shadermaterial-mesh-leaves-a-stale-render-bundle-used-in-submit-while-destroyed/64385 "2026-10-23T11:30:37Z")

</div>

With engine.compatibilityMode = false, replacing the thin-instance buffers of a mesh that uses a WGSL ShaderMaterial after it has been drawn leaves its cached render bundle pointing at the old buffer. The old buffer is d…

---

## [ThinInstances do not render unless mesh is added before sceneRegister()](https://forum.babylonjs.com/t/thininstances-do-not-render-unless-mesh-is-added-before-sceneregister/63736)

<div class="topic-metadata">

**Author:** [@dkong](https://forum.babylonjs.com/u/dkong)\
**Replies:** 5\
**Last updated:** [July 22, 2026, 4:51am UTC](https://forum.babylonjs.com/t/thininstances-do-not-render-unless-mesh-is-added-before-sceneregister/63736 "2026-07-22T04:51:22Z")

</div>

BabylonJS Lite issue. Edit: Move back after code change to see the rendered cubes

---

## [Babylon-thin-instance-outline — outline a single thin-instance (the case HighlightLayer / EdgesRenderer can't)](https://forum.babylonjs.com/t/babylon-thin-instance-outline-outline-a-single-thin-instance-the-case-highlightlayer-edgesrenderer-cant/63794)

<div class="topic-metadata">

**Author:** [@increasinglyHuman](https://forum.babylonjs.com/u/increasinglyHuman)\
**Replies:** 2\
**Last updated:** [July 17, 2026, 2:17pm UTC](https://forum.babylonjs.com/t/babylon-thin-instance-outline-outline-a-single-thin-instance-the-case-highlightlayer-edgesrenderer-cant/63794 "2026-07-17T14:17:10Z")

</div>

The demo for the lib Running inside my alpha game project. I ran into a snag on my project and so i did a thing to resolve it. thought it worth sharing. Thin instances are perfect for high-volume repeated geo…

---

## [Per instance bbox culling for thin instance picking](https://forum.babylonjs.com/t/per-instance-bbox-culling-for-thin-instance-picking/57251)

<div class="topic-metadata">

**Author:** [@kzhsw](https://forum.babylonjs.com/u/kzhsw)\
**Replies:** 8\
**Last updated:** [April 24, 2026, 9:15am UTC](https://forum.babylonjs.com/t/per-instance-bbox-culling-for-thin-instance-picking/57251 "2026-04-24T09:15:30Z")

</div>

Proposal: per-instance bounding-info culling for thin-instance picking Summary The current thin-instance picking flow performs one whole-mesh broad-phase in InternalPick() and InternalMultiPick(), then iterates every thi…

---

## [Use matrixData for thin instance picking](https://forum.babylonjs.com/t/use-matrixdata-for-thin-instance-picking/63194)

<div class="topic-metadata">

**Author:** [@kzhsw](https://forum.babylonjs.com/u/kzhsw)\
**Replies:** 2\
**Last updated:** [April 20, 2026, 5:16am UTC](https://forum.babylonjs.com/t/use-matrixdata-for-thin-instance-picking/63194 "2026-04-20T05:16:12Z")

</div>

Summary The thin-instance picking path in InternalPick() and InternalMultiPick() currently calls thinInstanceGetWorldMatrices(), which lazily allocates a cached Matrix\[\] by calling Matrix.FromArray() once per thin instan…

---

## [Stylized animated and reactive grass](https://forum.babylonjs.com/t/stylized-animated-and-reactive-grass/62558)

<div class="topic-metadata">

**Author:** [@peer2p](https://forum.babylonjs.com/u/peer2p)\
**Replies:** 3\
**Last updated:** [February 24, 2026, 11:49pm UTC](https://forum.babylonjs.com/t/stylized-animated-and-reactive-grass/62558 "2026-02-24T23:49:25Z")

</div>

Hi Community! First of all - thank you so much for this fantastic framework and your dedication! It’s just so much fun working with BabylonJS! I’ve been trying on implementing animated grass for my spare time gaming p…

---

## [Thin Instances : cloning without clone.makeGeometryUnique() will render transparent](https://forum.babylonjs.com/t/thin-instances-cloning-without-clone-makegeometryunique-will-render-transparent/62266)

<div class="topic-metadata">

**Author:** [@Tricotou](https://forum.babylonjs.com/u/Tricotou)\
**Replies:** 4\
**Last updated:** [January 30, 2026, 10:51am UTC](https://forum.babylonjs.com/t/thin-instances-cloning-without-clone-makegeometryunique-will-render-transparent/62266 "2026-01-30T10:51:14Z")

</div>

Hey, After a quick search here on the forum, I found some previously fixed ThinInstance+clone issues, but not this one Here is a repro : Take a mesh (box) and clone it (for example changing material) Set ThinInstanc…

---

## [Grass, butterflies and trees with instancing](https://forum.babylonjs.com/t/grass-butterflies-and-trees-with-instancing/45646)

<div class="topic-metadata">

**Author:** [@CrashMaster](https://forum.babylonjs.com/u/CrashMaster)\
**Replies:** 22\
**Last updated:** [January 24, 2026, 11:12am UTC](https://forum.babylonjs.com/t/grass-butterflies-and-trees-with-instancing/45646 "2026-01-24T11:12:48Z")

</div>

Hello everyone! After watching the last video of Simon Dev on grass, I was inspired to recreate and expand it using BabylonJS. So I had a lot of fun with instances and stuff and it came up nicely I think: You can tr…

---

## [Thin instances visibility and optimization](https://forum.babylonjs.com/t/thin-instances-visibility-and-optimization/61237)

<div class="topic-metadata">

**Author:** [@pietrko](https://forum.babylonjs.com/u/pietrko)\
**Replies:** 6\
**Last updated:** [November 3, 2025, 9:32am UTC](https://forum.babylonjs.com/t/thin-instances-visibility-and-optimization/61237 "2025-11-03T09:32:21Z")

</div>

I am rendering hundreds of thousands of the thin instances. The documentation tells that all thin instances are rendered or None. What kind of test is being made to determine that? From looking at my trees it seems tha…

---

## [Gltf: unofficial \_COLOR\_0 for EXT\_mesh\_gpu\_instancing](https://forum.babylonjs.com/t/gltf-unofficial-color-0-for-ext-mesh-gpu-instancing/60455)

<div class="topic-metadata">

**Author:** [@kzhsw](https://forum.babylonjs.com/u/kzhsw)\
**Replies:** 15\
**Last updated:** [October 10, 2025, 2:33am UTC](https://forum.babylonjs.com/t/gltf-unofficial-color-0-for-ext-mesh-gpu-instancing/60455 "2025-10-10T02:33:37Z")

</div>

In the EXT\_mesh\_gpu\_instancing it says: As with vertex attributes, custom instance attributes may be prefixed with an underscore (e.g. \_ID, \_COLOR, etc.) and used for application-specific effects. Currently three.js …

---

## [10k+ Instances with MSDF Text Nameplates and inline WASM compilation](https://forum.babylonjs.com/t/10k-instances-with-msdf-text-nameplates-and-inline-wasm-compilation/60277)

<div class="topic-metadata">

**Author:** [@knervous](https://forum.babylonjs.com/u/knervous)\
**Replies:** 14\
**Last updated:** [September 16, 2025, 4:21am UTC](https://forum.babylonjs.com/t/10k-instances-with-msdf-text-nameplates-and-inline-wasm-compilation/60277 "2025-09-16T04:21:37Z")

</div>

Howdy all. This is a followup to an original demo: JavaScript/TypeScript object mapping in GPU Shader structs for complex binding - #2 by knervous This work is a sort of “addon” or plugin framework that I intend t…

---

## [assetContainer.instantiateModelsToScene not works as expected with thinInstances](https://forum.babylonjs.com/t/assetcontainer-instantiatemodelstoscene-not-works-as-expected-with-thininstances/60414)

<div class="topic-metadata">

**Author:** [@Cmen](https://forum.babylonjs.com/u/Cmen)\
**Replies:** 3\
**Last updated:** [September 9, 2025, 2:05am UTC](https://forum.babylonjs.com/t/assetcontainer-instantiatemodelstoscene-not-works-as-expected-with-thininstances/60414 "2025-09-09T02:05:44Z")

</div>

Hello everyone, Recently, I ran into a small issue while using assetContainer. Here’s what happened: My colleague created a glb model using Blender, and some of the meshes in this model use thin instances. I need to ad…

---

## [Questions of Thin Instances v.s. regular Instances](https://forum.babylonjs.com/t/questions-of-thin-instances-v-s-regular-instances/59420)

<div class="topic-metadata">

**Author:** [@crd233](https://forum.babylonjs.com/u/crd233)\
**Replies:** 3\
**Last updated:** [July 10, 2025, 9:17am UTC](https://forum.babylonjs.com/t/questions-of-thin-instances-v-s-regular-instances/59420 "2025-07-10T09:17:14Z")

</div>

According to my understanding, compared to regular instanced meshes, Thin Instances store all instance data in several Float32Array buffers, which reduces overhead on the JavaScript side and cost of loop of all mesh obje…

---

## [Enable physics for an added thin instance?](https://forum.babylonjs.com/t/enable-physics-for-an-added-thin-instance/59066)

<div class="topic-metadata">

**Author:** [@Joe\_Kerr](https://forum.babylonjs.com/u/Joe_Kerr)\
**Replies:** 3\
**Last updated:** [June 23, 2025, 3:43pm UTC](https://forum.babylonjs.com/t/enable-physics-for-an-added-thin-instance/59066 "2025-06-23T15:43:07Z")

</div>

Hi everyone, I think I have been doing whats in the “Instances” playground here (and there it works just fine). But for some reason “my” thin instances get an offset on y. Please see line 60 where I add the thin insta…

---

## [IBL Shadows Pipeline and instancing](https://forum.babylonjs.com/t/ibl-shadows-pipeline-and-instancing/57458)

<div class="topic-metadata">

**Author:** [@kzhsw](https://forum.babylonjs.com/u/kzhsw)\
**Replies:** 5\
**Last updated:** [April 1, 2025, 10:46am UTC](https://forum.babylonjs.com/t/ibl-shadows-pipeline-and-instancing/57458 "2025-04-01T10:46:16Z")

</div>

Version: 8.0.1 Engine: WebGL2 Playground: Clones: Instances: Thin instances: Expected: All these 3 playground shows the same result Actual: Clones: Instances: Thin instances: Other note: Not sure…

---

## [Wrong result of PickingInfo.getNormal with thin instances](https://forum.babylonjs.com/t/wrong-result-of-pickinginfo-getnormal-with-thin-instances/57393)

<div class="topic-metadata">

**Author:** [@kzhsw](https://forum.babylonjs.com/u/kzhsw)\
**Replies:** 5\
**Last updated:** [March 26, 2025, 11:02am UTC](https://forum.babylonjs.com/t/wrong-result-of-pickinginfo-getnormal-with-thin-instances/57393 "2025-03-26T11:02:12Z")

</div>

OS: any Engine: any Version: 5.57.1 ~ 7.54.1 Playground: Steps to reproduce: Click the plane Look at the lines Expected: Normals should be perpendicular to the plane Actual: Code:

---

## [School of fish stress test](https://forum.babylonjs.com/t/school-of-fish-stress-test/56664)

<div class="topic-metadata">

**Author:** [@simon](https://forum.babylonjs.com/u/simon)\
**Replies:** 6\
**Last updated:** [February 26, 2025, 4:08am UTC](https://forum.babylonjs.com/t/school-of-fish-stress-test/56664 "2025-02-26T04:08:43Z")

</div>

Just want to share a short video from one of the projects I’m currently working on. In addition to development, I’m passionate about freediving and spearfishing, so underwater scenes have always fascinated me. Working on…

---

## [3D Landscape using AI tools](https://forum.babylonjs.com/t/3d-landscape-using-ai-tools/56599)

<div class="topic-metadata">

**Author:** [@deimos411](https://forum.babylonjs.com/u/deimos411)\
**Replies:** 7\
**Last updated:** [February 20, 2025, 8:48am UTC](https://forum.babylonjs.com/t/3d-landscape-using-ai-tools/56599 "2025-02-20T08:48:26Z")

</div>

Hello! Two weeks ago I started a little project about landscape rendering from scratch using DeepSeek and Claude to see if it can work. 3D Landscape Until now it’s gone well, both choose the right method of thin in…

---

## [How to change the NME gradient in a separate thin instance](https://forum.babylonjs.com/t/how-to-change-the-nme-gradient-in-a-separate-thin-instance/56109)

<div class="topic-metadata">

**Author:** [@yanin\_artem](https://forum.babylonjs.com/u/yanin_artem)\
**Replies:** 7\
**Last updated:** [January 22, 2025, 6:35pm UTC](https://forum.babylonjs.com/t/how-to-change-the-nme-gradient-in-a-separate-thin-instance/56109 "2025-01-22T18:35:51Z")

</div>

Hello everyone! I’ve found many examples of color changes for a single thin instance, but I can’t find a way to change one of the gradient colors. Is there a way to set the gradient or its components as an attribute or s…

---

## [Transparent thin instances blocking others](https://forum.babylonjs.com/t/transparent-thin-instances-blocking-others/55682)

<div class="topic-metadata">

**Author:** [@Athenodoros](https://forum.babylonjs.com/u/Athenodoros)\
**Replies:** 4\
**Last updated:** [January 5, 2025, 5:38pm UTC](https://forum.babylonjs.com/t/transparent-thin-instances-blocking-others/55682 "2025-01-05T17:38:46Z")

</div>

Hi there! I’m sure it gets boring to be told by every newcomer that Babylon is great, but I definitely wanted to add my voice to the chorus of thanks :smiley: I’m trying to render lots of boxes in a grid, using thin in…

---

## [\[sandbox\] Render vertex normals renders incorrectly](https://forum.babylonjs.com/t/sandbox-render-vertex-normals-renders-incorrectly/55635)

<div class="topic-metadata">

**Author:** [@kzhsw](https://forum.babylonjs.com/u/kzhsw)\
**Replies:** 5\
**Last updated:** [January 3, 2025, 1:49am UTC](https://forum.babylonjs.com/t/sandbox-render-vertex-normals-renders-incorrectly/55635 "2025-01-03T01:49:19Z")

</div>

Version: 7.42.0 Engine: webgl2 Steps to reproduce: get a model here: teapots\_galore.zip (78.9 KB) Display inspector Find teapot mesh Check “Render vertex normals” Expected: Normals rendered at the position nea…

---

## [\[sandbox\] Display normals changes position of thin instance mesh](https://forum.babylonjs.com/t/sandbox-display-normals-changes-position-of-thin-instance-mesh/55634)

<div class="topic-metadata">

**Author:** [@kzhsw](https://forum.babylonjs.com/u/kzhsw)\
**Replies:** 1\
**Last updated:** [December 31, 2024, 12:20am UTC](https://forum.babylonjs.com/t/sandbox-display-normals-changes-position-of-thin-instance-mesh/55634 "2024-12-31T00:20:36Z")

</div>

Version: 7.42.0 Engine: webgl2 Steps to reproduce: get a model here: teapots\_galore.zip (78.9 KB) Display inspector Find teapot mesh Check “Display normals” Expected: Normals rendered at the same position of o…

---

## [Baked trs animation](https://forum.babylonjs.com/t/baked-trs-animation/42372)

<div class="topic-metadata">

**Author:** [@kzhsw](https://forum.babylonjs.com/u/kzhsw)\
**Replies:** 1\
**Last updated:** [July 13, 2023, 8:31am UTC](https://forum.babylonjs.com/t/baked-trs-animation/42372 "2023-07-13T08:31:51Z")

</div>

In docs there are Baked Texture Animations which is gpu-accelerated animation for meshes and thin instances, but it seems that only bone animations are supported. For TRS animations (translation, rotation, and scale), c…

---

## [Delay buffer sync when transforming thin instances](https://forum.babylonjs.com/t/delay-buffer-sync-when-transforming-thin-instances/53975)

<div class="topic-metadata">

**Author:** [@denysp](https://forum.babylonjs.com/u/denysp)\
**Replies:** 4\
**Last updated:** [October 7, 2024, 11:46am UTC](https://forum.babylonjs.com/t/delay-buffer-sync-when-transforming-thin-instances/53975 "2024-10-07T11:46:33Z")

</div>

Hello, I have a performance related question. At my current project I deal with dense point clouds. After voxelizing them on frontend, I can have point clouds with up to 1.5 million points. At some point I need to allo…

---

## [Problem of Thin Instance](https://forum.babylonjs.com/t/problem-of-thin-instance/53039)

<div class="topic-metadata">

**Author:** [@Harilala](https://forum.babylonjs.com/u/Harilala)\
**Replies:** 5\
**Last updated:** [August 28, 2024, 1:30pm UTC](https://forum.babylonjs.com/t/problem-of-thin-instance/53039 "2024-08-28T13:30:29Z")

</div>

Hello community, I’m just starting out with Babylon.js and I need your help urgently, please: I’m currently working on my first 3D scene project, where I want to represent an emblematic place in my country (Allée des Ba…

---

## [Issue updating thin instance boundary information](https://forum.babylonjs.com/t/issue-updating-thin-instance-boundary-information/51901)

<div class="topic-metadata">

**Author:** [@Akeyn](https://forum.babylonjs.com/u/Akeyn)\
**Replies:** 2\
**Last updated:** [July 8, 2024, 11:40am UTC](https://forum.babylonjs.com/t/issue-updating-thin-instance-boundary-information/51901 "2024-07-08T11:40:53Z")

</div>

Good afternoon! I recently started learning BabylonJS and I liked using ThinInstances. So I wanted to change the position of each instance separately, I succeeded, but as soon as the instance goes beyond the bounding bo…

---

## [ThinInstances and GlobalMatrix](https://forum.babylonjs.com/t/thininstances-and-globalmatrix/51817)

<div class="topic-metadata">

**Author:** [@Alberto](https://forum.babylonjs.com/u/Alberto)\
**Replies:** 3\
**Last updated:** [July 8, 2024, 7:49am UTC](https://forum.babylonjs.com/t/thininstances-and-globalmatrix/51817 "2024-07-08T07:49:10Z")

</div>

PG: ThinInstance & WorldMatrix | Babylon.js Playground (babylonjs-playground.com) Hi, I have not been able to understand how to play with globalMatrix and ThinInstance. I have more complex scenes but here i have reprod…

---

## [How to display clipped thininstances (boxes) as solid](https://forum.babylonjs.com/t/how-to-display-clipped-thininstances-boxes-as-solid/51661)

<div class="topic-metadata">

**Author:** [@SamD](https://forum.babylonjs.com/u/SamD)\
**Replies:** 7\
**Last updated:** [June 29, 2024, 6:20pm UTC](https://forum.babylonjs.com/t/how-to-display-clipped-thininstances-boxes-as-solid/51661 "2024-06-29T18:20:53Z")

</div>

I want to display several hundred thousands of boxes (maybe millions) of various sizes and colours (but all in the same orientation) and thininstances seems to work really well for this. However, I want an option to use…

---

## [Havok disablePreStep issue with instances](https://forum.babylonjs.com/t/havok-disableprestep-issue-with-instances/51641)

<div class="topic-metadata">

**Author:** [@CrashMaster](https://forum.babylonjs.com/u/CrashMaster)\
**Replies:** 4\
**Last updated:** [June 28, 2024, 8:23am UTC](https://forum.babylonjs.com/t/havok-disableprestep-issue-with-instances/51641 "2024-06-28T08:23:33Z")

</div>

Hey everyone! I am fiddling around with instances and havok and I found a weird behavior when using disablePreStep: The meshes are attached to their parents but the physics body does not cooperate xD The doc says “I…

---

## [Havok instances break when changing the scaling of individual instances](https://forum.babylonjs.com/t/havok-instances-break-when-changing-the-scaling-of-individual-instances/51632)

<div class="topic-metadata">

**Author:** [@CrashMaster](https://forum.babylonjs.com/u/CrashMaster)\
**Replies:** 1\
**Last updated:** [June 27, 2024, 9:23am UTC](https://forum.babylonjs.com/t/havok-instances-break-when-changing-the-scaling-of-individual-instances/51632 "2024-06-27T09:23:18Z")

</div>

Hey everyone! I am working on asteroid fields and I want to use instancing with Havok. I found something weird when changing the scaling of individual instances: When the scaling is equal to 1, the bodies are created…

[Next page](https://forum.babylonjs.com/tag/thininstances/129.md?match_all_tags=true&page=1&tags%5B%5D=thininstances)
