UV Texturing Mapping
Polygonal

I was going to go through Basic Polygonal modeling for my next tutorial, but I figured that any school worth a sack pennies should be able to teach you that. I'm making these tutorials in the hopes of teaching you something that isn't really touched on often in classes. That being the case, I've decided to take a request to go over UV Texturing mapping for polygons. I'll probably also go over a NURBS tutorial later.

As per request, this tutorial will explain the process that works best for me when it comes to texturing polygonal models. I've chosen my newer high-poly character from my 3D Stills gallery as the example. The process works the same with both low and high poly models. If there are any additional bits of info that you think should be included in this or any of my tutorials, please don't hesitate to bring it to my attention. Thanks!

First of all, polygons are very easily textured once you've gone through the horrid process of unwrapping all of your UVs... it's not really that bad, just tedious. If anyone has a faster workflow of unwrapping them, please let me know. :)

Ok, so for my scene in Figure 1, I'm going to use a high-poly model I'm in the process of making (note the temporary head...). At the moment, he's close to 5,000 polys. This model was modeled mostly from a polygonal cube, however, and if we look at the UVs in the UV Texture Editor (Windows > UV Texture Editor), you can see that almost ALL of the mesh is tangled up and compressed into a cube shape (Figure 2). In order to paint a texture accurately, you need to unwrap and untangle all these UVs in order to see how they're all layed out on the model. You can then take these unwrapped UVs into Photoshop or another paint program to accurately create a supercool texture for your model.Figure 1Figure 2
So, how do we unwrap these huge mess of UVs? Well, it's a bit of a tedious process, depending on the complexity of your model. Mine's kinda complex, so it'll take me a bit. :P So, let's concentrate on the torso. First, we'll turn on Backface Culling (Display > Custom Polygon Display > Options). This prevents you from selecting polygon components on both sides of the model. After doing so, in the front view, select the faces that make up the front torso area (Figure 3).Figure 3
In the front view, go to Edit Polygons > Texturing > Plannar Mapping > Options. In the options, reset the settings and turn on the Camera setting next to Mapping Direction. This causes the plannar map to project straight on to the model from the camera's perspective. (Figure 4)Figure 4
With the plannar map still selected, open the UV Texture Editor. You should see the faces you had selected displayed (Figure 5). Move these to the side. Figure 5
Now, you're going to want to untangle these UVs. If we take a close look at the shoulderpad area of the my model, you can see the crossing of the UVs (Figure 6). Move the UVs around to flatten them all out smoothly (Figure 7).Figure 6Figure 7
Continue with the rest of the model (Figure 8... and I'm not even done yet!!!).Figure 8
Once you have the entire body nice and untangled, I'll select, for example, one of my character's guns, and in the UV Texture Editor window, go to Polygons > Layout UVs. In the settings, you have different options regarding just how the faces are layed out, but this function will position the faces into the upper right section of the UV Tex Editor grid.(Figure 9) In this location, you will be able to get a snapshot of the UVs.Figure 9
Now, go to Polygons > UV Snapshot. A window will open (Figure 10) that will allow you to specify a size, location, color, and file type to save an image of your UV layout. I should point out that I believe this is a Maya 4 option. Once the settings are as you wish, click OK. An image will now be saved to your specified location. Open this image in Photoshop.(Figure 11) NOTE: This tutorial will use Photoshop to create the texture for the model. If Photoshop is unavailable to you, please substitute with the paint program of your choice.Figure 10Figure 11
This image can now be used as a guide to create your texture maps. For Maya, textures generally are best as Targa files (.tga), 32-bit, and make sure you have an Alpha Channel. While the Alpha Channel isn't necessarily required (depending on your situation), in order to see the texture on the model in Maya's viewscreen, the image must have an Alpha Channel associated with it. Remember that wherever the alpha is black, the image will not show, where it is white, it will. After working with your UV Snapshot images in your paint program, simply map the files to their coresponding attribute of your model's materials (Figure 12).Figure 12
Once mapped and applied, you are then free to use the UV Texture Editor to manipulate the UVs further to fine tune the texture's placement on the model.(Figure 13)Figure 13
Good luck!

I hope this tutorial has helped you! Any errors, suggesions, comments are welcome. Please contact me!

Michael McKinley