Blender Documentation: Last modified September 29 2003 S68 | ||
---|---|---|
<<< Previous | Materials and textures | Next >>> |
The UV-Editor allows you to map textures directly on the faces of Meshes. Each face can have individual texture coordinates and an individual image assigned to it. You can also combine it with vertex colors to make the texture brighter/darker or give it a colour.
For each face there are two extra features added:
four UV coordinates - These define the way an Image or a Texture is mapped on the face. They are 2D coordinates, that's why they're called UV, to distinguish them from XYZ coordinates. These coordinates can be used for rendering or for realtime OpenGL display.
a link to an Image - Every face in Blender can have a link to a different Image. The UV coordinates define how this image is mapped to the face. This image then can be rendered or displayed in realtime.
A 3D window has to be in "Face Select" mode to be able to assign Images or change UV coordinates of the active Mesh Object.
First add a Mesh Object to your Scene, next enter the FaceSelect Mode with FKEY or by pressing the FaceSelect Button in the 3DWindow header (Figure 65).
Your Mesh will now be drawn Z-buffered, if you enter the Textured draw mode (ALT-Z, also called "potato mode") you will see your Mesh drawn in purple, which indicates that there is currently no Image assigned to these faces. Now press AKEY and all the faces of the Mesh will be selected and highlighted by dotted lines.
Then change one Window into the Image Window with SHIFT-F10. Here you can load or browse an Image with the Load button. Images have to be in the power of 64 pixels (64x64, 128x64 etc.) to be able to drawn in realtime (note: most 3D cards don't support images larger than 256x256 pixels). However, Blender can render all assigned Images regardless of the size when creating stills or animations.
Loading or browsing an Image in FaceSelect automatically assigns the Image to the selected faces. You can immediately see this in the 3D window (when in Textured view mode - Figure 66).
You can select faces with RightMouse or with BorderSelect (BKEY) in the 3D window. If you have problems with selecting the desired faces, you can also enter EditMode and select the vertices you want. After leaving EditMode the faces defined by the selected vertices are selected as well.
Only one face is active. Or in other words: the Image Window only displays the image of the active face. As usual within Blender, only the last selected face is active and this can only be done with a RightMouse click.
In the ImageWindow you will see a representation of your selected faces as yellow or purple vertices connected with dotted lines. You can use the same techniques here as in the Mesh EditMode, to select, move, rotate, scale etc. With the Lock button pressed you will also see a realtime feedback in 3D of what you are doing.
In the 3D window; you can press UKEY in FaceSelect mode to get a menu to calculate UV coordinates for the selected faces (Figure 67).
Cube - Cubical mapping, a number requester asks for a scaling property.
Cylinder, Sphere - Cylindrical/spherical mapping, calculated from the center of the selected faces.
Bounds to 64, 128 - UV coordinates are calculated using the projection as displayed in the 3D window. Then scaled to a boundbox of 64 or 128 pixels.
Standard 64, 128, 256 - Each face gets a set of default square UV coordinates.
From Window - UV coordinates are calculated using the projection as displayed in the 3D window.
In the ImageWindow Toolbar (Figure 68) the first button keeps your UV polygons square while editing them, the second clips your UV polys to the size of the Image.
Some tips:
Press RKEY in the 3D window to get a menu that allows rotation of the UV coordinates.
Sometimes it is necessary to move image files to a new location on your harddisk. Press NKEY in the ImageWindow to get a "Replace Image name" menu. You can fill in the old directory name, and the new one. Pressing "OK" changes the paths of all images used in Blender using the old directory. (Note: use as new directory the code "//" to indicate the directory where the Blender file is).
You can also use FaceSelect and VertexPaint (VKEY) simultaneously. Vertex painting then only works on the selected faces. This feature is especially useful to paint faces as if they don't share vertices. Note that the vertex colors are used to modulate the brightness or color of the applied image texture.
Even without an Image assigned to faces, you can render textures utilizing the UV coordinates. For this, use the green "UV" button in the MaterialButtons (F5) menu.
If you want to render the assigned Image texture as well, you will have to press the "TexFace" button in the MaterialButtons. Combine this with the "VertexCol" option to use vertex colors as well.
<<< Previous | Home | Next >>> |
Solid and Hollow Glass | Up | Texture Plugins |