Is exist way to tile texturing morphed mesh without stretching?

Hi, @Mugen87, I trust in your knowledge :pray:


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.

1 Like

thanks, i’ll try

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.

3 Likes

Thank you for the answer, but it’s a bit hard to me to understand :exploding_head:
But i found something, maybe that will bring me closer to the goal - Updating UV coordinates of BufferGeometry

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 to achieve my current state

Recording 2024-04-17 at 16.52.06
Recording 2024-04-17 at 16.53.34