# Help Needed with Texture Disappearance After Merging Meshes in Babylon.js

**URL:** <https://forum.babylonjs.com/t/help-needed-with-texture-disappearance-after-merging-meshes-in-babylon-js/44083>\
**Category:** Questions\
**Created:** [September 13, 2023, 10:46am UTC](https://forum.babylonjs.com/t/help-needed-with-texture-disappearance-after-merging-meshes-in-babylon-js/44083 "2023-09-13T10:46:08Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![DTHTME](https://avatars.discourse-cdn.com/v4/letter/d/e19b73/32.png) [@DTHTME](https://forum.babylonjs.com/u/DTHTME)\
**Post date:** [September 13, 2023, 10:46am UTC](https://forum.babylonjs.com/t/help-needed-with-texture-disappearance-after-merging-meshes-in-babylon-js/44083/1 "2023-09-13T10:46:08Z")

</div>

Hey Babylon.js Community,

I’m currently working on a `Babylon.js` project where I’ve created a scene and imported several meshes from a `glTF` extension file. Everything is going smoothly so far; the meshes are added correctly, and I can see the in-built textures displayed on each mesh.

Now, here’s the challenge I’m facing: I want to treat this group of meshes as a single entity so that I can apply changes like position, rotation, and scaling collectively. To achieve this, I thought I’d use `BABYLON.Mesh.MergeMeshes`, which is great at creating a single mesh from a bunch of individual ones.

However, here’s where things get tricky. After merging the meshes with `BABYLON.Mesh.MergeMeshes`, all the in-built textures on the resulting merged mesh seem to disappear.

My Goal:  
I’m hoping to find a solution that allows me to merge these meshes while preserving their original in-built textures. The merged mesh should have the combined appearance of the individual meshes, with their respective textures intact.

Request for Help:  
I could really use your insights and expertise on this one. If you’ve encountered a similar situation or have a workaround to maintain the textures when using `BABYLON.Mesh.MergeMeshes`, please share your knowledge. Any tips, tricks, or code examples would be greatly appreciated.Below you can find a couple of screenshots.

Very same behavior occurred on the next playground, but I really couldn`t find a solution to that :

![](https://www.babylonjs.com/favicon.ico)[playground.babylonjs.com](https://playground.babylonjs.com/#E99FHV)

### [Babylon.js Playground](https://playground.babylonjs.com/#E99FHV)

Babylon.js playground is a live editor for Babylon.js WebGL 3D scenes

Thanks a bunch for taking the time to help out! Your experience with Babylon.js is incredibly valuable, and I’m looking forward to your ideas on this matter.

---

<div class="post-metadata">

**Author:** ![Evgeni\_Popov](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/evgeni_popov/32/4432_2.png) [@Evgeni\_Popov](https://forum.babylonjs.com/u/Evgeni_Popov)\
**Post date:** [September 13, 2023, 11:07am UTC](https://forum.babylonjs.com/t/help-needed-with-texture-disappearance-after-merging-meshes-in-babylon-js/44083/2 "2023-09-13T11:07:49Z")

</div>

Your meshes have different materials, so if you want to retain their original materials after merging, you should enable the multi-material option (6th parameter of `MergeMeshes`):

> **[Babylon.js Playground](https://playground.babylonjs.com/#E99FHV%233)**
>
> Babylon.js playground is a live editor for Babylon.js WebGL 3D scenes

---

<div class="post-metadata">

**Author:** ![DTHTME](https://avatars.discourse-cdn.com/v4/letter/d/e19b73/32.png) [@DTHTME](https://forum.babylonjs.com/u/DTHTME)\
**Post date:** [September 13, 2023, 11:13am UTC](https://forum.babylonjs.com/t/help-needed-with-texture-disappearance-after-merging-meshes-in-babylon-js/44083/3 "2023-09-13T11:13:08Z")

</div>

OMG, thank you so much , I can’t believe that I didn’t see that.

---

<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:** [September 13, 2023, 11:32am UTC](https://forum.babylonjs.com/t/help-needed-with-texture-disappearance-after-merging-meshes-in-babylon-js/44083/4 "2023-09-13T11:32:02Z")

</div>

> [@DTHTME](#):
>
> I want to treat this group of meshes as a single entity so that I can apply changes like position, rotation, and scaling collectively.

Alternatively, if you just need to apply the same transformation to all meshes, you can parent them all to a single TransformNode, it will be faster than merging meshes 🙂 [Transform Node | Babylon.js Documentation (babylonjs.com)](https://doc.babylonjs.com/features/featuresDeepDive/mesh/transforms/parent_pivot/transform_node)

---

<div class="post-metadata">

**Author:** ![DTHTME](https://avatars.discourse-cdn.com/v4/letter/d/e19b73/32.png) [@DTHTME](https://forum.babylonjs.com/u/DTHTME)\
**Post date:** [September 13, 2023, 11:44am UTC](https://forum.babylonjs.com/t/help-needed-with-texture-disappearance-after-merging-meshes-in-babylon-js/44083/5 "2023-09-13T11:44:29Z")

</div>

That`s also very helpful , I will compare this solution to what I already have. Thank you 😁
