1

I have a cable texture and a simple curve. I want to map the texture on the curve so that it looks like a cable.

enter image description here

Note : I dont want to convert the curve to mesh and the map with uv. Reason is i dont want to make more verts and the file size heavy.

Any suggestion. Thanks

atek
  • 10,006
  • 29
  • 91
  • 195
  • https://blender.stackexchange.com/questions/22939/how-can-i-add-a-material-to-a-curve-like-a-regular-mesh – brockmann Jun 19 '21 at 14:59
  • @brockmann the answer are to old and the version also to old. Will moonboots have given the answer. Thats what i was looking for. – atek Jun 19 '21 at 15:06
  • 1
    Don't get the difference (functionality of the mapping node still the same in 2.9)... Same question too, moonboots can add the answer over there (that's how this site works). – brockmann Jun 19 '21 at 15:07
  • @brockmann: if you are a bloody beginner (and i was a few month ago) the blender versions seem to look very different and you are sometimes totally lost although it is pretty much the same... – Chris Jun 19 '21 at 15:19
  • 2
    A beginner with 9K rep? Disagree on the mapping node looks different. Multiple reasons to close this as a dupe IMHO: it's even the same question and shows no research effort (basically nothing). Also, we can always add new answers to the other Q&A or update the existing answers. That's how this site works @Chris – brockmann Jun 19 '21 at 15:24
  • @brockmann: i didn't check his reputation and where it comes from. Sometimes you gained the reputation from years ago. And it's human to forget things ;) And yes, we could update the answer. That's right...and maybe ...just a guess...someone else uses his account too ;) – Chris Jun 19 '21 at 15:26
  • it's not really the same question, he's specifically asking about an image texture on a curve, there must be the answer somewhere though as it is a basic – moonboots Jun 19 '21 at 18:26

2 Answers2

5

If you choose a value of Scale > 1.5 and Z Rotation > 90°, it will work better (still not perfect as it is not a repeatable texture and also it will squeeze on some parts because of the UV mode, but I don't think you can avoid that):

enter image description here

moonboots
  • 155,560
  • 7
  • 105
  • 171
  • Thanks thats what i was looking. How it works for the curve can u plz let me know in detail. – atek Jun 19 '21 at 15:00
  • what do you mean by "how it works for the curve"? I'm not sure there's any perfect way to texture with an image texture as you will always have some parts that will squeeze (unless I miss a way to do it correctly), but a thing that you can do to improve your texture is making it repeatable, it is not the case here. It all depends on your final goal actually, if you can hide the bad part it's ok – moonboots Jun 19 '21 at 15:12
4

Another possibility would be to use procedural textures like this:

enter image description here

Of course you should tweak it a bit more that it looks like you want it.

result:

enter image description here

Chris
  • 59,454
  • 6
  • 30
  • 84