Difference between revisions of "UV coordinates in Blender"
Mikehgentry (talk | contribs) |
Mikehgentry (talk | contribs) m (→Tips) |
||
Line 43: | Line 43: | ||
== Tips == | == Tips == | ||
− | * If you've thoroughly stuffed it up and want to start again, switch to 'Default' screen layout and tab into object mode. | + | * If you've thoroughly stuffed it up and want to start again, switch to 'Default' screen layout and tab into object mode. Select your mesh, and switch the panel on the right to 'Object Data'. Hit the minus sign next to UVMap to delete the map entirely. |
== Advanced techniques == | == Advanced techniques == |
Revision as of 02:39, 21 January 2013
This page is intended for a crash course in UV coordinates in Blender.
Links to good tutorials are welcome, as are tips from veterans, but the plan is to make a solid run-through for an absolute beginner, so if you're dealing with advanced topics likely to confuse a beginner please either leave them at the end, or perhaps consider a different page.
Tested on Blender 2.65
Contents
[hide]What is UV unwrapping?
Basically we're mapping a 2D texture onto a 3D mesh. Think of a world map's projection (like unpeeling an orange), or unfolding a cube to make a 2D surface.
Every XYZ point on the surface of our mesh must be mapped to a UV point on our texture. Fortunately we don't have to do it point by point - the vertices in XYZ space have corresponding vertices in UV space, and Blender interpolates the surface in between for us.
Even easier, Blender has methods for 'unwrapping' a mesh or part of a mesh. By repeated selective unwrappings, the computer does most of the work, and we just fine tune it afterwards.
Objectives
The main things you are trying to balance when unwrapping:
- Size
- Maximise use of texture space: You want to make your texture files as small as possible to avoid straining the game engine. Pack polygons into the map as tightly as you can, using space efficiently. A single part of the texture can be mapped to multiple polygons, and any faces internal to the model (which should be avoided where possible to prevent z-buffer issues) can be shrunk to a point.
- Optimise detail: Parts of the mesh probably need more detail than others. The parts that should be highly detailed need more texture space, so should be made larger when unwrapped.
- Control distortion: You can distort polygons on the UV map for effect, but assume to begin with that you want to minimise distortion. If your polygon is a square on the mesh, it should be square on the UV map.
- Alignment: Where texture detail crosses contiguous faces, it makes it much easier to line it up correctly if the faces are contiguous on the UV map too. For textures with 'grain' you may need to rotate parts of the map for it to look right.
Set up Blender
- Select 'UV Editing' screen layout using the widget in the top left which probably says 'Default'
The screen is divided in two, the 3D view on the right, the UV map on the left.
- Select 'New' in the widget below the UV map. Choose your texture's size, which must be a power of 2. For 'Generated type' it can be helpful to select 'UV Grid' - this creates a 'fake' texture for you, so you can see how it maps to the mesh in the 3D window. Hit OK.
- Switch the 3D view's 'Viewport Shading' mode to 'Texture'. Your mesh will turn white, because we haven't mapped anything to it yet...
Basic method
to do...
Using seams
I don't understand seams, someone else will have to write this bit :-)
Tips
- If you've thoroughly stuffed it up and want to start again, switch to 'Default' screen layout and tab into object mode. Select your mesh, and switch the panel on the right to 'Object Data'. Hit the minus sign next to UVMap to delete the map entirely.