0
$\begingroup$

I'm not really sure how to phrase this, and I'm a bit of a novice still, but basically I'm trying to atlas an object that uses multiple materials/textures, and I'm running into issues that degrade the quality. This is an example of just one of the materials, it is meant to be mapped to a 512x512 image.

https://i.sstatic.net/zWXDF.png

That works fine of course, and the quality of the image is as it should be. The problem is I've created a 4096x2048 image that contains all of the objects textures and plan to map each material to the corresponding texture. The problem is when I import the image the materials want to scale themselves to that image in the uv editor like this.

https://i.sstatic.net/zn31B.png

I've scaled the material down on the uv editor to fit its texture, but the issue I've run into is that the quality has then gone down significantly.

What I want is to import that image, and have the material stay the same size as it was for the 512x512 image so that I can retain the quality and properly create the mapping.

$\endgroup$

1 Answer 1

1
$\begingroup$

UV mapping is used to position a vertex on an image. The U and V values for a vertex are between 0.0 and 1.0, a value of 0.0 means it is on the left or top edge of the image, while 1.0 means it is on the right or bottom.

Whether you use a 512x512 image or a 4096x4096 image, a value of 0.5 will always be in the middle of the image. Where a face uses vertices that are 0.25 apart, the face will use one quarter of the image, a larger image means more detail on the given face.

In your example, you layout the UVs on a 512x512 image and then use a 4096x2048 image. As the new image is twice as wide as it is high the texture gets stretched in the one direction, which depends on the face orientation on the image.

If you want to increase the texture detail, you want to increase the image resolution the same amount in both directions.

It is possible to bake multiple textures onto one, which sounds like what you want to look into. To get the result, you want to make a new UVLayout that positions the multiple materials onto different parts of the image and then you bake the old materials onto the new image. This method allows you to convert between a square and rectangular image texture.

$\endgroup$

You must log in to answer this question.

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