really bad texture resolution

hi there!

i want to make an iphone game with some cards and try to map their texture in a file of size 512x3072, each card has 512x512 pixels. everything works fine but the resolution is really bad even though I used advanced texture type withou mipmap, trilinear filter mode and max size 1024 / RGB 16 bit. my shader is "diffuse".

what is wrong here? thanx!!!

1 Answer

1

Hi,

3072 is not a power of two size and by default, unity will stretch the image to have power of two width and height. Maybe that is the problem. You would need to select "none" in the "non power of two" setting of the texture when you are in advanced mode for the image not to be stretched.

Hope it helps,

Bye,

Jean

hm, I thouhght that must be the right answer, but when I changed the image height to 4096 nothing changed. the image looks still like from the 80ies - really pixeled and unsharp... :-(

then maybe your uv mapping is wrong. Also check the preferences unity does apply compression depending on the platforms and the quality you want to achieve.

found nothing there. maybe the texture is too big? is there a max hight/width for textures2d's?

I now build everything new and took a texture 1024x1024 - that works. unity just calculated everything down to the maximum height of 1024 so the width went too small and with it the resolution...