1
$\begingroup$

Because I'm making tileable mesh, I have to resort to some programming hack in order to automatically generate missing textures for having them tileable without to adding too much pressure on my artist (later he can repaint some junction pieces if he want, but I'm pretty sure the image blending algorithm will be fine for the 95% of the cases).

However to do that I need to place UV coordinates with pixel perfect precision.

Here's actually my 3D model:

blender UV mapping a tile

If you look carefully to the above picture you will see that the UV mapping is not fitting exactly in 1/4 of the original texture.

I want to align the UV mapping to have extreme corners at a texture corner and at texture center (basically => fit inside 1/4 of the final texture)

enter image description here

Most UV vertices need to be placed manually snapping to 1/64 increments. (think to the texture as a chessboard with 64 cells on each side: there are 64+1 possible coordinates on each dimension). That's also because some UV maps are deformed by Blender, so I cannot just "scale" those to fit in exact areas.

enter image description here

I need either to know:

  • How to enter manually UV coordinates in UV/Image editor
  • Or how to snap UV coordinates to 1/64 or 1/32 grid.
$\endgroup$

1 Answer 1

1
$\begingroup$

You may select the desired vertex of the uv island, press G, then X (or Y depending on what axis you want it to transform) and type the value using keyboard. You can also enable the Snap during transform (Increment) option to snap the vertex to the grid in the Uv Editor (hold Shift to snap by smaller distances). enter image description here

You can also use the vertex coordinates buttons in the UV Vertex panel of the UV Editor's properties shelf (N).
enter image description here

You can edit your UV island's appearance using the same tools as in 3d view window. To make the edge perfectly horizontal or vertical select the vertex you want the other ones to allign to and press Shift+S-->Cursor to Selected. Next (with the pivot type set to 2D Cursor) select the vertices to allign and scale it by 0 along X or Y axes (S,X (or Y),0). enter image description here

$\endgroup$
1
  • $\begingroup$ Solved my problem without the need to manually compute coordinates :) thanks (UV editor => key N => enter coordinates ) $\endgroup$ Dec 29, 2016 at 16:11

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .