I created a simple mesh from curve and UV mapped it. Calling it “Sample”.
When I want to use Sample for transfering UV map to other mesh (that has similarly looking, yet different mesh topology), in area where original curve had beginning and end together, UV transfer creates that glitch with stretched UV map.
Can anyone explain and show me how to work around this? I’m clueless at the moment.
This is a problem that doesn’t have an easy way around it, in general, (but it looks like your example isn’t the worst case.)
The issue is that Sample’s UV map is looped. This means that one coordinate goes from 0 to 1 all the way around the loop, and then, back at the beginning, jumps directly from a value of 1 back to 0, at neighboring face corners.
A mesh with the same shape but different topology may not have an even place to make that jump.
Those artifacts you’re seeing are because those faces have some corners on the low side of the jump and other corners on the high side. Even if you do have a neat line of edges exactly where it needs to be, another issue is that “sample nearest surface” will return exactly the same position for each face corner that shares a point, so it won’t automatically make that jump for you. This would have to be corrected by accounting for which corner is on which face.
In the case in your file, that fix should be possible (since your new mesh is a subdivided version of your old mesh.) But if your real application is something more general, maybe not.