# Multidraw and Thin Instances

**URL:** <https://forum.babylonjs.com/t/multidraw-and-thin-instances/32443>\
**Category:** Questions\
**Created:** [July 24, 2022, 9:33pm UTC](https://forum.babylonjs.com/t/multidraw-and-thin-instances/32443 "2022-07-24T21:33:05Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![mlz](https://avatars.discourse-cdn.com/v4/letter/m/b5ac83/32.png) [@mlz](https://forum.babylonjs.com/u/mlz)\
**Post date:** [July 24, 2022, 9:33pm UTC](https://forum.babylonjs.com/t/multidraw-and-thin-instances/32443/1 "2022-07-24T21:33:05Z")

</div>

I was curious, would it be possible to use the webgl multidraw extension with the excellent Thin Instances to use a variety of meshes in a single draw call (although I understand that the meshes might have to share the same material).

The multidraw extension seems to have broader support now, including the oculus browser on the Quest 2.

---

<div class="post-metadata">

**Author:** ![carolhmj](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/carolhmj/32/25918_2.png) [@carolhmj](https://forum.babylonjs.com/u/carolhmj)\
**Post date:** [July 25, 2022, 11:51am UTC](https://forum.babylonjs.com/t/multidraw-and-thin-instances/32443/2 "2022-07-25T11:51:15Z")

</div>

cc @sebavan

---

<div class="post-metadata">

**Author:** ![sebavan](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/sebavan/32/57_2.png) [@sebavan](https://forum.babylonjs.com/u/sebavan)\
**Post date:** [July 25, 2022, 1:55pm UTC](https://forum.babylonjs.com/t/multidraw-and-thin-instances/32443/3 "2022-07-25T13:55:25Z")

</div>

mutlidraw is not supported by Babylon so far and you are right multidraw\_instanced would do just that 🙂

cc @Deltakosh and @Evgeni_Popov as multidraw could be a nice addition to our toolset but I remember we chose to not add it as most of the time outside CAD apps, different models would have different materials.

---

<div class="post-metadata">

**Author:** ![mlz](https://avatars.discourse-cdn.com/v4/letter/m/b5ac83/32.png) [@mlz](https://forum.babylonjs.com/u/mlz)\
**Post date:** [July 25, 2022, 2:08pm UTC](https://forum.babylonjs.com/t/multidraw-and-thin-instances/32443/4 "2022-07-25T14:08:11Z")

</div>

Hi, a common optimization with PBR materials is to have a single PBR material using atlas textures (so in 1 material you can have wood, metal, plastic, each one having its uv position in the atlas texture). With this, you could have what seems to be different materials in a single draw call. What would be nice is also to have the tool that generates this atlas texture and adjust the UV accordingly.  
🙂

---

<div class="post-metadata">

**Author:** ![Deltakosh](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/deltakosh/32/26635_2.png) [@Deltakosh](https://forum.babylonjs.com/u/Deltakosh)\
**Post date:** [July 25, 2022, 4:19pm UTC](https://forum.babylonjs.com/t/multidraw-and-thin-instances/32443/5 "2022-07-25T16:19:35Z")

</div>

I’m not against the idea of adding it if someone wants to volunteer
