Texture alignment question

I’m sure someone has asked this before, but this is easier than searching for it (what kind of keyword would you look for?)

I take a straight tube, and I put a ridged (Wood) texture on it. A bit of tweaking with the X/Y/Z texture controls, and it looks fine.

Now I have a squiggly tube. How can I make the texture follow the twists and turns of this tube?

i think uvmapping would be best, maybe, i dunno… yeah its what i would do, but theres probably techniques i dont know about, somewhere, somehow… jawnty forever!

what is this tube made in?

If it is a mesh object, you will have to uvmap (not good for procedurals, difficult to get rid of seams)

if it is a nurbs surface I believe the “UV orco” buton in the edit buttons will do what you need. There is another thread with more detail (and the correct answer if I am wrong), but I can’t seem to find it.

Right, yeah, it would be nurbs.

Thanks guys.

couldnt you apply the texture to a straight tube, apply the texture , make it sticky and then deform it . thats assuming you start from the beggining?

https://blenderartists.org/forum/viewtopic.php?t=13291&

hey, that’s just the thread I was looking for

now, anybody know how to convert from nurb surface to mesh and keep UV Orco effect? Would be especially useful for racing games.