2
$\begingroup$

I have unwrapped UVs that I want to match to an image but whenever I load an image it distorts. Is this a bug?

enter image description here

enter image description here

$\endgroup$
3
  • 1
    $\begingroup$ Did you try changing the canvas size so your image becomes square then import it into the image editor? powers of 2 are usually preferred 256, 512, 1024, 2048,...etc.)? $\endgroup$ Jan 14 at 10:00
  • $\begingroup$ @SamirRahamtalla Of course this helps but it increases the file size unnecessarily. Imagine you have an image texture of let's say a line of text which is very wide but not very high. Making this square blows up the file size extraordinarily. $\endgroup$ Jan 14 at 11:43
  • $\begingroup$ You can pack all your textures in a square sized file, that way you load a smaller number of files, otherwise you will have to redo the unwrapping. My workflow is to model, unwrap and pack UVs, export UVs to image editing program, then compose and optimize textures. $\endgroup$ Jan 21 at 13:11

1 Answer 1

6
$\begingroup$

No, it's by design.

UV coordinates are relative to image dimensions. So then you put an image with different aspect ratio, it distorts. But you are able to use different size variations of texture (for example 512x512, 1024x1024, 4096x4096, etc.), without changing UV.

To fix your issue, you can redo UV set by selecting the orthogonal view and pressing U ⇾ Project From View

$\endgroup$
3
  • $\begingroup$ Can this not be avoided? How am I supposed to texture the keyboard if it's distorted like this $\endgroup$
    – Dambacha
    Jan 14 at 9:46
  • 3
    $\begingroup$ If you are working with texture with non-square aspect ratio, plug it to the material before making the UV. In that case, all operations with UV will be operated according to the aspect ratio $\endgroup$
    – Crantisz
    Jan 14 at 9:54
  • $\begingroup$ @Crantisz I would add this comment to your answer - although it is by design to stretch the UVs according to the image aspect ratio for several reasons, your comment is what actually helps him to get what he wants in this case because the advantages of the standard UV behavior are not needed here I guess. $\endgroup$ Jan 14 at 11:38

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.