Cycles - Texturing the inside of a cylinder

Hey,

Having trouble learning how to use cycles. The nodes confuse me…
So I’m trying to put a texture on the inside of a cylinder (well, it’s not a full cylinder).


On the right is the texture I want. On the left is the shape I want it on.
I want the lines on the texture to be vertical and evenly space down the entire tunnel.
I think the main issue is, I have no idea how to UV map this object.

What do I do?

So I think I’ve fixed it, but I had to unwrap each section… But is there an easier way? There has to be.

Probably not related to Cycles , it is more an unwrapping problem.
Try this for that cylinder-like shape :

Select one of the faces of that cylinder
http://i.imgur.com/UpI20.jpg

Press U then Unwrap, in the Operator menu (or press F6), set the Method to “Conformal”
In your UV you should have something like that :
http://i.imgur.com/njnUR.jpg
Make sure each edges of that faces in the UV editor are flat on the X and Y axis.

The face you’re selected is greyed/noisy a bit in the 3D view, it means that it’s the “Active Face”

Now select all the other face (press A or press B and box select, or press C and paint select them)
The originally selected face must always be the Active Face
http://i.imgur.com/2xFXp.jpg

Now press U and this time select “Follow Active Quads” then OK at the popup menu, your UV should look like that :
http://i.imgur.com/TBkPo.jpg

Rescale up or down depending if you want the uv map to fit inside of the texture, or be bigger than so the texture repeat around (like in my example screenshot)
http://i.imgur.com/sL5vu.jpg

Fantastic, thanks Sanctuary for the in depth guide. I’ll bookmark this page for whenever I may need it.

One more thing: My mesh is not made up of a few faces, it has been extruded many times along the Y axis, so I can’t just select one face. How would I do that? If it means more effort to explain, leave it be if you want. You’ve been enough help =]

If you mean something like that :
http://i.imgur.com/LHsxP.jpg

It works exactly the same, you select 1 single face to make it the “Active face”, then you press A 2 times or B to box select or C to paint select the whole cylindrical shape
And you unwrap with “Follow Active Quads” to obtain this kind of uv :
http://i.imgur.com/EjWWb.jpg

That’s exactly what I meant! Thank you so much =]