# Threejs InstanceMesh in Studio

**URL:** <https://forum.8thwall.com/t/threejs-instancemesh-in-studio/7982>\
**Category:** Technical Support\
**Tags:** studio\
**Created:** [August 7, 2025, 1:50pm UTC](https://forum.8thwall.com/t/threejs-instancemesh-in-studio/7982 "2025-08-07T13:50:49Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Xihui\_Ng](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.8thwall.com/xihui_ng/32/1829_2.png) [@Xihui\_Ng](https://forum.8thwall.com/u/Xihui_Ng)\
**Post date:** [August 7, 2025, 1:50pm UTC](https://forum.8thwall.com/t/threejs-instancemesh-in-studio/7982/1 "2025-08-07T13:50:49Z")

</div>

This might be more of a Threejs question. I am building an AR experience with objects moving around using a flocking algorithm. I managed to improve the performance by using ECS System and Behavior but I think the bottleneck here is still rendering.

Was looking into how to improve that and chance upon threeJS InstanceMesh but couldn’t figure out how to create InstanceMesh for my own models. I can create InstanceMesh with `THREE.BoxGeometry` but for glb files, I think I have to load it manually? `ecs.assets.load` gives me a blob data file, and I am assuming I need the GLTFLoader to parse the data to get the geometry and mesh. Hmm..

So the questions are:

1. Is GLTFLoader accessible in component scripts within 8th Wall Studio?
2. Is there another approach where I can get the ThreeJs geometry and material to create the InstanceMesh?
3. Or is this something even possible with Studio?

---

<div class="post-metadata">

**Author:** ![GeorgeButler](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.8thwall.com/georgebutler/32/1903_2.png) [@GeorgeButler](https://forum.8thwall.com/u/GeorgeButler)\
**Post date:** [August 7, 2025, 9:10pm UTC](https://forum.8thwall.com/t/threejs-instancemesh-in-studio/7982/2 "2025-08-07T21:10:51Z")

</div>

I’ve created InstancedMeshes using Studio before but only with BufferGeometry or Primitive shapes, haven’t tested it with loaded GLTFs. This is something we’re looking into that’s apart of our performance pass.

---

<div class="post-metadata">

**Author:** ![Xihui\_Ng](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.8thwall.com/xihui_ng/32/1829_2.png) [@Xihui\_Ng](https://forum.8thwall.com/u/Xihui_Ng)\
**Post date:** [August 8, 2025, 3:08am UTC](https://forum.8thwall.com/t/threejs-instancemesh-in-studio/7982/3 "2025-08-08T03:08:56Z")

</div>

I guess will have to make do with lowering polycount and texture sizes for now. Thanks!

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex019/uploads/x8thwall/original/2X/9/9212a857458f1b03a6accb129e0f8cbea408e3e5.png) [@system](https://forum.8thwall.com/u/system)\
**Post date:** [August 18, 2025, 9:57am UTC](https://forum.8thwall.com/t/threejs-instancemesh-in-studio/7982/4 "2025-08-18T09:57:37Z")

</div>

This topic was automatically closed 4 days after the last reply. New replies are no longer allowed.
