# Strange artefacts on cloth texture

**URL:** <https://forum.babylonjs.com/t/strange-artefacts-on-cloth-texture/6061>\
**Category:** Questions\
**Created:** [October 2, 2019, 2:29am UTC](https://forum.babylonjs.com/t/strange-artefacts-on-cloth-texture/6061 "2019-10-02T02:29:37Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![labris](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/labris/32/12576_2.png) [@labris](https://forum.babylonjs.com/u/labris)\
**Post date:** [October 2, 2019, 2:29am UTC](https://forum.babylonjs.com/t/strange-artefacts-on-cloth-texture/6061/1 "2019-10-02T02:29:37Z")

</div>

I put GLTF model to PG [https://www.babylonjs-playground.com/#U5SSCN#50](https://www.babylonjs-playground.com/#U5SSCN#50) … and cannot understand the nature of strange artefacts on cloth texture. Maybe there is some function to get rid of them, or maybe it is better to rework the texture? There is no such problem with DCC render (C4D). At close distances all looks almost fine, but when the camera is a bit more far, one can see the picture like that:  
 ![image](https://us1.discourse-cdn.com/flex024/uploads/babylonjs/original/2X/c/c5bdb8ec05ff663c602dbc8bebaaeb2f2ac981eb.jpeg)

---

<div class="post-metadata">

**Author:** ![Vinc3r](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/vinc3r/32/25340_2.png) [@Vinc3r](https://forum.babylonjs.com/u/Vinc3r)\
**Post date:** [October 2, 2019, 8:09am UTC](https://forum.babylonjs.com/t/strange-artefacts-on-cloth-texture/6061/2 "2019-10-02T08:09:50Z")

</div>

As your texture is not power of 2, I think the engine try to resize it, and it’s maybe the interpolation which make this moiré pattern:

![image](https://us1.discourse-cdn.com/flex024/uploads/babylonjs/original/2X/7/7d1e31c2890fae7d3b5948546c2de74a635fd0f7.png)

Try with a 2048\*1024 for example.

Also, mipmap handling is wrong:  
 ![image](https://us1.discourse-cdn.com/flex024/uploads/babylonjs/original/2X/a/a292813c1eb67841bc32f8bb55b81623097ecbf6.png)  
You should have mipmap and another sampling than nearest.

---

<div class="post-metadata">

**Author:** ![labris](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/labris/32/12576_2.png) [@labris](https://forum.babylonjs.com/u/labris)\
**Post date:** [October 2, 2019, 9:34am UTC](https://forum.babylonjs.com/t/strange-artefacts-on-cloth-texture/6061/3 "2019-10-02T09:34:17Z")

</div>

Thanks, I’ll try to change resolution… and will check mipmaps generating while exporting.  
Will report later 🙂

---

<div class="post-metadata">

**Author:** ![labris](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/labris/32/12576_2.png) [@labris](https://forum.babylonjs.com/u/labris)\
**Post date:** [October 3, 2019, 12:27am UTC](https://forum.babylonjs.com/t/strange-artefacts-on-cloth-texture/6061/4 "2019-10-03T00:27:22Z")

</div>

The problem was in bad texture. Now it looks much better, as it should be 🙂

[https://www.babylonjs-playground.com/#U5SSCN#59](https://www.babylonjs-playground.com/#U5SSCN#59)

 ![image](https://us1.discourse-cdn.com/flex024/uploads/babylonjs/original/2X/3/39f0d8692c8e2858c99fc0e18ab3f1f35bc34972.jpeg)

---

<div class="post-metadata">

**Author:** ![labris](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/labris/32/12576_2.png) [@labris](https://forum.babylonjs.com/u/labris)\
**Post date:** [October 6, 2019, 1:24pm UTC](https://forum.babylonjs.com/t/strange-artefacts-on-cloth-texture/6061/5 "2019-10-06T13:24:16Z")

</div>

And here is the demo with description - [Naim Mu-so Qb 2 - 3D Model Demo for landing page](https://forum.babylonjs.com/t/naim-mu-so-qb-2-3d-model-demo-for-landing-page/6124)
