0
$\begingroup$

I am attempting to create UVs for a series of 3D brush strokes. I only have the mesh data which is built like amorphous tubes as seen in the images below.

If I were doing just a few of these I suppose I would define a seam and unwrap, however I have hundreds of these strokes so this is not feasible.

Anyone have ideas of how I can create some cylindrical UV coordinates out of these meshes?

Thanks! enter image description here

My idea was to try to generate a spline along this path and then generate UVs from that, but I do not know how I can do that!

Edit:

So I was able to get part of the way there, using this tutorial (which is very good): https://www.youtube.com/watch?v=02XNGOVpSV4

However I still have some issues:

  1. This method uses world normal to generate the seam, which doesn't produce a very nice result. I would like to somehow intelligently generate one of my texturecoords along a spline that would pass through the middle of this geometry (I don't care about the other axis as much)
  2. This adds the generated UVs to a namedAttribute, which I am not able to set as an actual UV map. See this issue here: How to convert UVMap attribute to UV map in blender 3.6

enter image description here

$\endgroup$
11
  • $\begingroup$ How, exactly, are you generating your 3D brushstrokes? It would, of course, be more convenient if there was a route to splines at modelling-time... $\endgroup$
    – Robin Betts
    Aug 23, 2023 at 7:02
  • $\begingroup$ @RobinBetts Absolutely. They are exports from Tiltibrush I believe... I will try to find a path that way as well, but curious to see if I could do it from Mesh alone... $\endgroup$
    – nturley
    Aug 23, 2023 at 14:28
  • $\begingroup$ This is something I've been playing with.. so far I've found unreliable hacks, that's all.. I think there's no completely unambiguous definition of the spine of a 3D stroke, working backwards. I hope to be contradicted, of course :) $\endgroup$
    – Robin Betts
    Aug 23, 2023 at 15:03
  • $\begingroup$ @RobinBetts It is definitely an ill defined problem :) It's sorta like finding the centroid along the volume and creating a curve. Obviously deciding which way is "up" would be an issue, but I feel like there should be a way to at least trace along the stroke. Maybe something with ShrinkWrap $\endgroup$
    – nturley
    Aug 23, 2023 at 16:16
  • 1
    $\begingroup$ @RobinBetts If this were a quad mesh, the sort of thing Blender would make, I would select edge ring along length, use "select edge loops" to get all of the circumferential loops, scale to 0 along individual origins, and merge by distance to recreate the spine of the curve. There are GN techniques whereby you could "bind" this to original positions to identify the tangent vector associated with any particular surface (can't just do sample nearest, risk of getting some other sample, like with self-intersection.) From here, you can use an arbitrary vector to get radial UV. $\endgroup$
    – Nathan
    Aug 23, 2023 at 16:55

0

You must log in to answer this question.

Browse other questions tagged .