I vaguely remember seeing a video or addon that allowed doing this. Does anyone know what it’s named?
I have a very curvy mesh that sort of high-poly and I don’t want to rebuild it or unsubdivide it but I’d like to manipulate the UVs on top of a tiling texture to get some of the straight lines in the texture to follow the curves of the 3d model.
If I had access to the Bezier Mesh Shaper addon in the UV editor or the Curve function of Loop Tool in the UV editor I’d probably be able to achieve what I want quite easily.
If I could edit a mesh in the 3d viewport and then turn that data into the uv map on another object via geometry nodes, I would have access to those tools to use on the UV map.
Here two GN nodegroups that might help you… One transforms the object to its UV coordinates, and the other stores the new positions to the UV space and returns the object to its original shape.
You may need to apply the first GN to your object before you go into edit mode… When you’re done with the UVs, add and apply the second nodegroup.
Perhaps… I’d need to experiment with this a bit more. The problem I suspect it will happen, is that when you go into edit mode in the UVprojected object, the original object won’t update…
I haven’t tested this extensively, so it might have some flaws here or there…
It’s now late in this side of the planet, so I’ll take a deeper look tomorrow.
If I understood you correctly, you want to change points locations of UV in Edit Mode and see updated results live on object.
Try to:
Duplicate original object, set duplicated object’s points positions to UV (use seam as boolean attribute on edge domain to use in Split Edges node), apply GN.
For original object take duplicated object points positions and store it as UVMap attribute on Face Corner domain.
For shader to work you need to explicitly provide UVMap from Attribute node (UV from Texture Coordinate does not work for some reason)
Can you explain what Sample Index does and why it’s necessary? Why can’t you just plug position from one object into position of another object when one is a direct copy of the other?
I haven’t figured out how to do step 1 properly but your file works exactly as expected.
Although they are duplicates their geometry positions are different (but indices are the same).
When you input Position node (to Set Position or Store Named Attribute) GN will retrieve positions of currently evaluated geometry. Sample Index is used to provide positions from another geometry.
Here is a nice explanation by harry blends.