6
$\begingroup$

I have a really simple object with less than 20 polygons, that is used on a platform for my game. I was able to model and unwrapped it, but I want to resize all the side polygons so they are 32px high, and stack them together (as they are all the same).

Also, I wanted to know if it was possible to set the resolution of the UV-map viewport (where the 2D texture is displayed) so it has a resolution according to my target texture, and the polygons faces are aligned.

Here is the picture of what I have done so far: enter image description here

$\endgroup$
  • $\begingroup$ What do you mean by setting the resolution of the viewport? It already displays the images at the size of the scale of the UVMaps. $\endgroup$ – CharlesL Jul 13 '13 at 20:12
  • $\begingroup$ @CharlesL But the 'resolution' of the polygons on the UV viewport is waaay higher than the resolution of my texture. $\endgroup$ – Pacha Jul 13 '13 at 21:40
  • $\begingroup$ Your screen shot shows that you have chosen a UV Grid with a resolution of 64 x 64, giving you a set of four squares with red and yellow plus signs in them. Is this the 'resolution' you are referring to? If so, it would be better if you accepted the default resolution of 1024 x 1024, or, if you have a texture, then make its resolution 1024 x 1024. $\endgroup$ – SteveW Jul 13 '13 at 22:23
  • $\begingroup$ @SteveW No, I mean the resolution of the polygons (the top and bottom part, and the sides). I want to align them to my small texture, pixel by pixel. Do you understand what I mean? $\endgroup$ – Pacha Jul 13 '13 at 22:55
  • $\begingroup$ Do you mean that the polygon 'faces' are different sizes relative to each other in the UV/Image Editor, and so will have different resolutions where they meet on the object? $\endgroup$ – SteveW Jul 13 '13 at 23:13
1
$\begingroup$

In the UV Editor (as shown in your picture), select one of the 'sides' (position the mouse cursor over one and hit L) then hit ctrl P - this will make it fill the image vertically at 64px high. Now scale it by half S (.5). Do the same with all the other 'sides' (not the top or bottom), they should now sit neatly one on top of the other, and be 32px high. Position the 2D Cursor on one of the vertices at the bottom of the 'sides' (select a vertex and hit shift S > Cursor to Selected),

enter image description here

and then set the pivot to 2D Cursor.

enter image description here

Now grab G the 'bottom' and position one of it's vertices on the 2D Cursor and then scale (S) until the next vertex lines up as shown.

enter image description here

Do the same with the 'top'. Now all resolutions should be the same and the sides will be 32px high. I hope this solves the problem.

| improve this answer | |
$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.