UV Mapping

Tutorial collection, comprehensive listings on main site.

UV Mapping

Postby Tutorial on Sun Mar 27, 2005 9:54 pm

category
Modelling

description
Learn about UV mapping and it's applications.

keywords
model, models, modelling, uv, map, mapping, 3ds, studio, max, 3d.

For Gmax and 3Ds Max

What the hell is UV Mapping?

UV mapping, or sometimes called meshing, stands for UV Texture coordinates. It's a way to represent your 3D model on a 2D texture so the computer can see where each polygon takes it's texture information. U, V are coordinates that tell the position of a vertex on that 2D texture. It's an important stage of the 3D model production because it will make your model "texturizable". A good UV is important and reflects the quality of your model. If it's all messed up, the texture will simply look horrible, just like the rest of your model. And you don't want that, do you?

OK dude, but how do I UV Map?

First of all, open 3Ds Max or Gmax. It's exactly the same process for both applications, since Gmax is has only the advanced features removed. Open your model, whatever it is. I'm going to teach you how you UV map a simple squary model, but you should understand and be able to make more compex models after, such as player models and other organic models. Ok, so there you have your model.

Image

I know it's pretty crappy, but hey, this is only a tutorial. At least it's a bit more complex than a box. First thing to notice is to have your model converted as an Editable Mesh. I suggest you collaspe all the modifiers you could have applied to your model and make it a simple Editable Mesh. Then it's important to apply a checker map to your model. Open your Material Editor menu (default key is "M" ) then select a new material and in the Maps tab, click the rectangle next to Diffuse Color. In the list that appear, choose Checker. Set the Tiling to 15 x 15. Here's my model with the checker map applied.

Image


You can't see the checker map correctly. That's because all the vertices are stuck to the (0,0) UV coordinates. That's normal, and that's why we need to UV map this model. Now open the Editable Mesh modifier by clicking the little + next to it. Select the Polygon subselection mode.

Image


Now select some faces that are almost parallel. Like those:

Image

I suggest you use the Ignore Backfacing feature, it prevents you from selecting faces you don't see. If when you select the faces they aren't fully red, press F2 and they should be (default key). Now let's apply a UVW Mapping modifier. Keep the Polygon subselection mode activated.

Image

What the hell does that UVW Mapping modifier do?, you might ask (or simply WTF m8? ). Well, it's quite simple. The orange rectangle you see is a gizmo. It represents the texture map. You can set it's Lenght and Width manualy, I put 200 x 200 but that's temporary anyway because we may modify it further in the UVmapping process. It's important that you use the same size for all the UVW Mapping modifiers in the same model so all faces has the same pixel resolution. Note that it's square only if your texture is square (i.e. 512x512, 1024x1024 etc...). The little line that comes out of the square gizmo indicates the top of the texture. That means right now our texture is rotated 90 on the side for the polygons we've selected. But that's not important right now, here again we'll be able to modify that further in the UV mapping process. Notice the Alignment axis. Change the axis and see which fits best to the polygons you are currently UVing.

Now take a close look at the polygons we've selected earlier. We now clearly see the checker map on them. Notice that 2 of them have the checker map a bit stretched. We'll need to fix that in the next step of our job. For the other polygon we can see the squares of the checker map are perfectly squared, so that face is correctly UVed. Next step is to apply a UVW Unwrap modifier.

Image


Click the Edit button. This will bring the Edit UVWs Screen ( I removed the checker map from that viewport so you can the lines ). Hey! That looks like the 3 polygon we've selected earlier! Well, it's them, but represented in a 2D view. Take a look at the tools that viewport has: Move tool, Rotate tool, Scale tool, Mirror tool.

I rotated the vertices so its correctly aligned on my texture. I also moved the vertices in the red boxes so the texture isn't stretched anymore. Look in my 3D viewport, now the checker map is squared! That's what we wanted. Now those polygons are correclty UVed and we are happy. Add a Edit Mesh modifier and redo the same process for all the polygons. Select the polygons -> UVW Mapping modifier -> UVW Unwrap modifier -> Edit Mesh modifier and so on. Don't worry if you have 45 modifiers applied to your object when your done, that's normal.

Now consider the model completly UVed. Apply a final Edit Mesh modifier, don't select anything, don't use the Polygon subselection mode, just add a final UVW Unwrap modifier to your object.

Here you can see my model is done UVed. All the black squares are perfectly squared, this means it's correctly UVed.

Image

Here is my final UV of the model.

Image

You can see all the faces of my model on this UV. It's important to squish them as much as possible without overlaping them and you need to leave a few pixels between the pieces so the skinners don't have a hard time making an accurate skin.

So now you're done UV Mapping! Good Job Soldier! I hope you understand this technique. If you have any questions, feel free to E-mail me. funktfarles@gmail.com I suggest you continue reading this tutorial, I'll explain how to UVmap a cylinder and show you some common errors not to do. Go visit the best HL² mod: http://www.resistanceandliberation.com/.

UVing cylinders

The technique is the same, only something to change in the UVW Mapping modifier. Here I selected the side faces of my cylinder.

Image

Simply add a UVW Mapping modifier. Instead of selecting Planar mapping, select Cylindrical mapping.

Image

Don't change the Length and Width, we'll adjust only the Heigth for now. Apply your checker map and play with the Height value until you have a your checker map correctly align on the model (the black squares need to be perfectly squared). Like this:

Image

Now you can edit your UVed cylinder in the UVW Unwrap modifier just like we did earlier. For the cylinder caps, use the technique you've just learned 5 minutes ago.

Common Errors

Here's some common errors people sometimes make.

Bad UVing.

Image

Not an optimal UV!! Too much free space!!

Image

Overlaps!!

Image


Thank you for reading!

Questions: funkyfarles@gmail.com

http://www.resistanceandliberation.com/

Farles
- Don't send PM's to this user -
Tutorial
Not A Real User
 
Joined: Sun Mar 06, 2005 11:00 pm

Postby GonzoBabbleshit on Thu Dec 15, 2005 10:29 am

Ace! This is exactly the kind of thing I've been looking for. Much better than the way I was trying to do it before...
When you commit heart and soul to earning your place, opportunity kills common sense
User avatar
GonzoBabbleshit
Member
Member
 
Joined: Sat Mar 12, 2005 1:37 pm

Postby TheMiede on Sat Jun 10, 2006 9:07 am

how do u UV a sphere?
TheMiede
1337 p0st3r
1337 p0st3r
 
Joined: Wed Apr 20, 2005 4:11 am

Postby Athlete{UK} on Sat Jun 10, 2006 9:11 am

TheMiede wrote:how do u UV a sphere?


For simple objects like spheres boxes cylinders etd. You can just UVW a preset shape. So you use a spherical projection map.

THis will be ok but there will still be errors which you can fix yourself using the above mentioned process.
User avatar
Athlete{UK}
Veteran
Veteran
 
Joined: Sun Nov 14, 2004 2:56 pm
Location: Stoke

Postby Jman on Fri Nov 24, 2006 8:12 pm

How do I turn the UV into a .tga? Cause have my rectangular object, fully UV'd, but what now? Export says my material needs to be bitmap like usual, but how do I turn it to .tga so it can be Bitmap?
User avatar
Jman
Veteran
Veteran
 
Joined: Wed Mar 30, 2005 11:01 pm

Postby Jest@ on Fri Nov 24, 2006 9:10 pm

If you're using max 8+, it's built in - "when in the unrwap modifier, tools > render UVW template" (thanks reeke :D). For older versions (should work in 8+ too afaik) get hold of the Texporter plugin.
User avatar
Jest@
Veteran
Veteran
 
Joined: Mon Nov 22, 2004 1:50 am
Location: London UK

Postby Jman on Fri Nov 24, 2006 11:57 pm

:woot: UV'ed and done.
User avatar
Jman
Veteran
Veteran
 
Joined: Wed Mar 30, 2005 11:01 pm

Postby quangphangbang on Tue Jul 10, 2007 1:55 am

its not working. everytime i get to the edit part under the unwrap uvw nothing happens. r u supposed to press a button? i tried every other tutorial i could find even for gmax but this is new to me anyways
quangphangbang
Just Joined
Just Joined
 
Joined: Sun Jul 08, 2007 7:52 pm

Return to Tutorials

Who is online

Users browsing this forum: No registered users