Hey, what is up, nation?
In this session I'm gonna be teaching you how you can
apply a texture to a curved surface.
Or, in this case, we are gonna be doing a cylinder, in SketchUp.
All right!
So I have a SketchUp file open here,
and I've imported a can from the 3D warehouse.
And what I want to do is essentially put a label
on this part of the can.
The cylinder part of it.
So I've made a few adjustments,
just that this works with the texture that I found online.
But...I'll explain to you as we go thorough this, what I've done.
And this should really help you sort of figure out what is going on.
So the first thing I want to do is I want to
import my texture that I'm gonna apply to this can.
So I'm gonna go to File -> Import.
And I'm gonna make sure that I have image selected.
You can also have texture.
For this I'm just gonna have image.
I'm going to show you a few different ways.
Image will import it as an image into the file.
So it's sort of like a 3D object.
Texture will be just put into your material library.
New matched photo is essentially if you're trying to match a photo,
it will give you some prospective lines that you can pick.
So I'm gonna choose this.
This video is not sponsored by coca-cola.
But if they want to sponsor me they can do it.
So we're just gonna scale it just really rough.
So we have that in there.
Now when you import a file like this, an image, it's not edible...editable.
So what you want to do is go to explode,
and then will make it a physical object.
And then you can regroup it.
So what I'm gonna do here is hit M to move,
then rotate this, so I'm hitting Q to rotate,
and I hit M to move just a second ago.
I hit Q to rotate again,
and I'm using the arrow keys to lock to the axis that I want.
And so we have this guy.
So basically at this point we want to reverse this.
So there's a few different ways that you can do this.
And I'm gonna show you the first way, and then
I'll show you the way that I would do it.
Just so that you're aware of the different options that you have.
So the first way is not going to be ideal,
but it may work for what you are doing.
So this is a cylinder.
So this first thing we are going to do isn't gonna be ideal.
But if I explode this, and then click on this face here,
and go down to Texture, you can see that
this projected is checked.
So what that means is that, if I take this texture,
and I apply it to anything else,
it will take the current view of this texture.
And it will project it on to that surface.
In that direction. If that makes sense.
So if I hit B to bring up the paint bucket tool,
and then hold alt while I have that paint bucket selected,
I can eyedropper my texture, and click on the cylinder.
And what is does, is it projects that on to the surface.
And I know that's a little bit confusing what's happening,
it's basically like taking this image here
and pushing in on to this, whatever I can see here.
It's pushing on to that face.
So you get some like weird sort of like things what's going on here.
You know, it doesn't make sense.
But if you're just doing like a curved surface,
like a flat curved surface.
This isn't working because it's the cylinder.
But if you just have like a some kind of curved surface,
that's I don't want to say on one plane,
but it's facing one plane.
This is multi-directional.
But it's primarily facing one plane, this could be a great option.
And I'll just wanna show you really quick.
If I rotate this, this doesn't change dynamically.
But you can see now that now I see this coca-cola.
Just to demonstrate how that works a little bit.
Okay, so have this, it's not working.
So what we wanted to do, is we want to
essentially wrap this texture around.
Around the soda can.
So what I'm gonna do, is I'm gonna Uncheck.
You just want to make sure you have that face, this single face selected .
I'm gonna uncheck projected,
and then what I'm gonna do is turn on "Hidden Geometry"
That's gonna let me see all these little lines that we have here.
Now, the thing that's important to know,
I think this isn't sized correctly to the height.
And this can is basically, is totally different,
then the one this is.
So there's two ways that you can sort of go about this.
You can either size this image to the height there,
or you can size the length to the circumference.
And I'll show you both of those, just so you can see the difference.
So what I want to do is make sure that this is a group,
and then I'm gonna scale it.
So first gonna measure.
Use the tape measure tool to measure the height of this area.
It doesn't have to be exact, so.
But I'm gonna say this is very close to 9 foot 5,5.
It's a very large can :)
So I'm gonna choose this measurement.
And it was 9 foot 5.5 inches.
"Do you want to resize the active group or component?" - "Yes".
So now what I want to do is just make sure that
this is at the starting point here.
And the height should be the same.
Just double check that my projection is turned off.
It's turned on. So I just turned it off really quick.
And then over here.
Now what I wanna do is hit B for the pain bucket tool.
Alt to select that original texture.
And then what I can do, I just manually fill in all of these little faces.
And what that does, is it wraps the texture around for me.
But what you'll notice, is as I get closer to the end here,
I\it just gonna kind of keep going forever.
Actually that was okay.
But you can see like there's a little bit of clipping here.
That actually happens on that can.
This actually turned out pretty well.
Because I made some adjustments to the high of the can,
or the dimensions of the can so it worked.
But what could happen, dependent because the length
isn't sized to the circumference of the can.
Is that you could get like a clipping in the middle of something.
But this ended up working.
So if I turn off "Hidden geometry" here
that actually looks really good.
And actually the only issue that I saw was here.
Which is actually on the image. So yeah.
So obviously you can add this kind of stuff
when you get your...like you're gonna add the image,
to fix that kind of stuff.
If you don't really want to resize your component.
The other thing that I want to show you, that may not be
the most intuitive thing, because in involves the additional step,
is that you can choose the length.
To like if there's...you can choose the length to size this too.
So basically if there's extra space
like this has a little bit of space at the top,
that maybe okay. To get rid of.
So it may be larger than like...taller than this.
So what I'm gonna do is first I need to know the circumference.
Obviously, use math.
But if you don't have to, why.
So if I select this, and then on the right, inside.
You want to make sure your default tray is open.
If it's not, you wanna go to window Default tray
and this will say "show tray".
And the thing we are gonna be using here is entity info.
So if I come down to entity info, you can see that having
these two lines selected allows me to see this length.
So it's just over. 17 foot 10.5
So if I go back into this, select my
tape measure tool,
and I wanna this like to be 17 foot 10.5.
Sorry, I rebound on my keys, on my number pad.
So that didn't work. 17 foot 10.5.
Okay, so that actually just changed it just a little bit.
So they are actually really closed.
But you can then do the same thing we just did.
By using paint bucket tool by going around and painting faces.
That's why it actually looks pretty good.
Because the height and the, and the length are really similar.
In this particular instance.
That's why it didn't tile.
It actually looks like it may have tiled somewhere here.
That's where like restarts.
You can actually...I wanna cheat a little bit.
Let's turn hidden geometry on.
Cause this is the only thing, yeah.
I think we might be able to cheat...
Texture -> position. I can just drag this up a little bit.
And I cheated a little bit!
Just by positioning that texture a little bit.
So it looks less weird.
You may have to refine it. I fixed it.
So there we go!
Hopefully this helped.
I know this can be a really taught thing to think about
in Sketchup, but hopefully this...
I've seen a few different videos showing how to do this.
But it seems like a lot of them are in like different versions.
And not all of them do a cylinder.
So they are gonna do like a flat face.
So hopefully this is able to really show you exactly what is going on.
No matter what you want to apply your texture to.
If you have any comments feel free to ask me
in a comment section below.
If you like this video, please don't forget to like, subscribe
and share this video with your friends.
And don't forget to hit that little bell icon,
it helps me get into your newsfeed.
If that's what you want.
So if you wanna see more videos like this on sketchup,
just hit that that bell icon.
So thank you so much for watching,
and as always - Happy Hacking!
All right, designers!
Just because this episode of designer hacks is over,
doesn't mean we are leaving you out in the cold!
Tony's got tones of great content available at designerhacks.com,
so join design nation right now,
and we'll see you on a next episode of designer hacks!