Skip to content

A NodeGroup for that creates curve-based meshes with UVs.

License

Notifications You must be signed in to change notification settings

quellenform/blender-CurveToMeshUV

Repository files navigation

Curve to Mesh UV [Free Version]

Blender License Donate Buy Buy Documentation Status

A node group for Blender that creates curve-based meshes with UVs based on Geometry Nodes.

Screenshot

What does it do?

Unfortunately, Blender does not currently generate UVs with the Curve to Mesh node, which means that texture mapping is not really possible. This node group generates these missing UVs for you, based on the existing face corners.

Unlike the approach of calculating the UVs based on vertices, this variant calculates UVs based on the face corners. The node works with all types of curves and can also process cyclic curves as well as multiple curves simultaneously.

Complete Node v1.7.02

Want more?

The solution presented here is an excerpt from an even more extensive project available in the Blender Market, which can also handle overlapping profile curves, as well as correct the normals of the generated faces (interesting for letters or other complex shapes):

Complete Node v1.7.02 - Pro Version

Open source may be all well and good, but development costs time and money. With your contribution you support new features and further updates. Thank you!

Get the full version here:

See it in action on YouTube

Usage

  1. Add/import the node group from the blend-file
  2. Connect the base curve and the profile curve to the node
  3. Connect the output UV Map to a new socket of Group Output
  4. Connect the output Caps Mask to a new socket of Group Output (optional, if you want to make the scaling/texturing of the caps independent of the side faces)
  5. Set the Attribute Domain of this group outputs to Face corner (!!!)
  6. Add a Set Material node to the geometry before Group Output
  7. Assign an identifier for this attributes in Output Attributes
  8. Load the attributes in the shader with the previously assigned identifier

Remember: This node works with Face Corners and not with Points, so always pay attention to the outputs.

Documentation

You can find detailed documentation here: Curve to Mesh UV - Perfect UVs with Geometry Nodes

Notes

Please consider a small donation if you like this project, or buy the full version to support further development. Thank you!

Credits

Dedicated to Dominik Mörth

Written by Stephan Kellermayr