Easy-to-follow video tutorials help you learn software, creative, and business skills.Become a member
Now let's use the UV Image Editor to precisely align a bitmap to an object. Now we already touched on this editor a little bit in taking a bitmap image and just showing it in the viewport, but we also can use it to precisely map the image to the object. So let's go ahead and select this object here and go over to Materials panel, add a new material--just hit that plus sign--and then let's go to the Textures panel, and you will see we have no textures either, so I will just go ahead, hit plus, add in a texture.
On this Type, we are going to add Image or Movie, and then we are going to go down to our image and click Open. And we are going to hit CardboardBox, which is the image that we are using. And you can see now we have that cardboard box image. Now if we hit F12 to render, you'll see that, well, it's not mapping properly. And part of that is because we just don't have our mapping coordinates set to UV, so let's go ahead and set those to UV. And let's take a look at both here. And let's go ahead and do another render. And you can see it's still not right.
So let's go ahead and start mapping this image to the box. So what we need to do is open up a UV Image Editor. Now I need this open at the same time as my viewport, so probably the easiest thing to do is to just left-click up here and drag over another window and then change this one on the left to the UV/Image Editor. Now what this does is it shows an image and then what I can do is I can map this object against that image.
Now we did this before, so let's go ahead and just do the basics here. In our User Perspective viewpoint we are going to hit Tab and we are going to go into Face mode and hit A to select all faces. Now, in here we are just going to go ahead and open up the image that we want. We are going to go into our Chap07 folder and open up CardboardBox. Now when I do that you can see how when I am in Texture mode now, that shows up.
So you can see that I have that image of the box mapped one to each face. Well, that's not really what I want. I really want to match the unfolding of this box to this image. And you can notice how this image is basically just a box that's been unfolded and laid flat. Now this UV/Image Editor, if I expand it, you can see how it has a number of controls here. Now probably the most important ones are down here.
This allows us to basically select edges, faces, and vertices. So if I were to select faces here, what I'm doing is I am selecting the faces that are on this object. So if in here, in this UV Editor window, if I hit G for grab, I can move that face, and you can kind of see how I have all of these faces connected. In fact if you see here, you can see how as I move that face, it changes the mapping on the object.
So what we have here is basically a way to match the faces on this object to the flat image map. But the easiest way to do this is to unfold my box. In order to do that, I need to create some scenes. And I can do that by going into Edge mode. So I am going to hit Ctrl+Tab, go Edge, and then start selecting the edges that I want. Now if we look at this image, you will see that we have three panels connected here and then the top panel is also connected.
So what I want to do is select those three panels here. So I want one, two, three. These are edges, so in other words, that's this edge here, swivel over to the other side, and then Shift+Right-click to select these edges. So now that I have all of these edges selected, I need to define them as the scene. So we go into Mesh > Edges > Mark Scene.
And when I do that, notice how they turn red. And that shows me this is how this object will unwrap. So anything that's not red will be continuous; anything that is red is one of these scenes. So now that I have that, I can go into Face mode, select all my faces, and unwrap it. So I am going to select Mesh > UV Unwrap. Notice that we have a lot of options here, but I just want to pick this top one called Unwrap, which recognizes those scenes and unwraps the object. And as soon as I do that, notice how this interface here changes.
What we have now is the faces of this object are now unwrapped according to those scenes, and it actually looks pretty close. So what we can do here is go through our UV Editor and align those so that it lines up. So what I can do is I can actually select faces, edges, or vertices here. And so, if I want, I can select each one of these faces individually and in order to move them I just use the keyboard shortcuts G for grab. So if want, I can select those faces, I can select this face here, hit G for Grab, and move it.
And notice how it's moving in that right user perspective viewport. Now if I want I can select all of them, so all I have to do is hit A and that selects all of these. And if I hit G for grab, that means I can move these, and you can see how now my bitmap, as I dial this in, it's starting to line up. So I am going to go ahead and try and position this fairly accurately. And now what I can do is I can go in and fine-tune it.
So if you can see here, I've got it actually pretty close here. I've got my box pretty much lined up. It seems like the bottom scene though isn't quite working, but we can fix that. So let's go ahead and navigate over to here and just select this face here, hit G to grab, and just move it down a little bit. Now if I want to, I could actually go through a face at a time, an edge at a time, same commands for this as it is for regular viewport. Basically I select an edge, you can just right-click to select those edge, G to move it if I want.
Or if I want I can align it however I want. So again, if I want to select this edge here and hit G to grab and move, you can see how I'm aligning this. Notice the top of that box. I can totally change how this bitmap maps to my object. So let's go ahead and select some vertices here. Again, it's just right-click, G for grab, and we can move those around. Now, you also have other commands besides grab. You can certainly scale.
You can certainly rotate as well. So for example, if I were to go into Face mode here, select a face, I could G grab and move it, or I could hit R to rotate it, or I could hit S to scale it. Okay, so you have a lot of different options here. So those are some of the basics of how to use this UV Editor. Now when I hit Render you can see how this pretty much lines up. And this is how we assign those UV coordinates that we are using in that Textures panel.
So when I go over here to Textures and I say the Coordinates are UV, this is where it's pulling it from. So now once we have these assigned, we can use this bitmap and it will map perfectly.
Get unlimited access to all courses for just $25/month.Become a member
107 Video lessons · 32866 Viewers
94 Video lessons · 22772 Viewers
78 Video lessons · 9023 Viewers
83 Video lessons · 8315 Viewers
Access exercise files from a button right under the course name.
Search within course videos and transcripts, and jump right to the results.
Remove icons showing you already watched videos if you want to start over.
Make the video wide, narrow, full-screen, or pop the player out of the page into its own window.
Click on text in the transcript to jump to that spot in the video. As the video plays, the relevant spot in the transcript will be highlighted.
Your file was successfully uploaded.