# Is exist way to tile texturing morphed mesh without stretching?

**URL:** <https://discourse.threejs.org/t/is-exist-way-to-tile-texturing-morphed-mesh-without-stretching/17248>\
**Category:** Questions\
**Tags:** morph-targets, materials, textures, geometry\
**Created:** [July 20, 2020, 12:08pm UTC](https://discourse.threejs.org/t/is-exist-way-to-tile-texturing-morphed-mesh-without-stretching/17248 "2020-07-20T12:08:10Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![goout](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/goout/32/11123_2.png) [@goout](https://discourse.threejs.org/u/goout)\
**Post date:** [July 20, 2020, 12:08pm UTC](https://discourse.threejs.org/t/is-exist-way-to-tile-texturing-morphed-mesh-without-stretching/17248/1 "2020-07-20T12:08:10Z")

</div>

Hi, @Mugen87, I trust in your knowledge 🙏

 ![image](https://canada1.discourse-cdn.com/flex035/uploads/threejs/original/2X/8/89198b35a0ddd2b6c375ceb2300599cd3e9e4ef5.png)  
 ![image](https://canada1.discourse-cdn.com/flex035/uploads/threejs/original/2X/5/500b5a14412bb68f3faf38113bc58a128cd17532.jpeg)

---

<div class="post-metadata">

**Author:** ![Mugen87](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/mugen87/32/5645_2.png) [@Mugen87](https://discourse.threejs.org/u/Mugen87)\
**Post date:** [July 20, 2020, 12:17pm UTC](https://discourse.threejs.org/t/is-exist-way-to-tile-texturing-morphed-mesh-without-stretching/17248/2 "2020-07-20T12:17:45Z")

</div>

> I trust in your knowledge

I’m honored but unfortunately I can’t help here^^.

You would also have to morph texture coordinates which is normally not something you do when performing morph target animation. I suggest you try to author the door’s geometry differently so the discontinuity goes away automatically.

---

<div class="post-metadata">

**Author:** ![goout](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/goout/32/11123_2.png) [@goout](https://discourse.threejs.org/u/goout)\
**Post date:** [July 20, 2020, 12:47pm UTC](https://discourse.threejs.org/t/is-exist-way-to-tile-texturing-morphed-mesh-without-stretching/17248/3 "2020-07-20T12:47:55Z")

</div>

thanks, i’ll try

---

<div class="post-metadata">

**Author:** ![Fyrestar](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/fyrestar/32/52793_2.png) [@Fyrestar](https://discourse.threejs.org/u/Fyrestar)\
**Post date:** [July 20, 2020, 2:29pm UTC](https://discourse.threejs.org/t/is-exist-way-to-tile-texturing-morphed-mesh-without-stretching/17248/4 "2020-07-20T14:29:49Z")

</div>

You could implement triplanar mapping which in this particular case could be simplified to one axis, patching the material to use the morphed coordinates for the UVs. Other than that you would have to recompute the UVs on CPU.

In order to seamlessly match with the border you would have to accept a minimal stretching by rounding to the smallest amount of repetitions and stretcht the over or underflow across the repetitions - or use minimum step sizes so stretching could not occur.

---

<div class="post-metadata">

**Author:** ![goout](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/goout/32/11123_2.png) [@goout](https://discourse.threejs.org/u/goout)\
**Post date:** [July 20, 2020, 3:55pm UTC](https://discourse.threejs.org/t/is-exist-way-to-tile-texturing-morphed-mesh-without-stretching/17248/5 "2020-07-20T15:55:00Z")

</div>

> [@Fyrestar](#):
>
> You could implement triplanar mapping which in this particular case could be simplified to one axis, patching the material to use the morphed coordinates for the UVs. Other than that you would have to recompute the UVs on CPU.

Thank you for the answer, but it’s a bit hard to me to understand 🤯  
But i found something, maybe that will bring me closer to the goal - [Updating UV coordinates of BufferGeometry](https://discourse.threejs.org/t/updating-uv-coordinates-of-buffergeometry/9180)

---

<div class="post-metadata">

**Author:** ![PippeG](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/pippeg/32/33618_2.png) [@PippeG](https://discourse.threejs.org/u/PippeG)\
**Post date:** [April 17, 2024, 11:56pm UTC](https://discourse.threejs.org/t/is-exist-way-to-tile-texturing-morphed-mesh-without-stretching/17248/6 "2024-04-17T23:56:24Z")

</div>

hey FyreStar ,would you know of a source i can read to implement this?  
I’m developing something similar  
i tried triplanar mapping and it works when i modify the scale of the mesh, but not when modifying the morph Targets  
i used the solution in this [post](https://discourse.threejs.org/t/wrap-texture-around-object-without-stretching-with-meshstandardmaterial/56948/3) to achieve my current state

![Recording 2024-04-17 at 16.52.06](https://canada1.discourse-cdn.com/flex035/uploads/threejs/original/3X/c/a/caa0c80f8538141b4a75e5e3466689f970cd7f14.gif)  
 ![Recording 2024-04-17 at 16.53.34](https://canada1.discourse-cdn.com/flex035/uploads/threejs/original/3X/4/3/43fb9b48df973b93bc628b8993bbdc85f09472ec.gif)
