x


Texture size

I am import a texture with size of 2150x1600. After import in unity the texture take square proportion. There is some limit texture importing like size or other? Where I'm wrong?

more ▼

asked Mar 05 '12 at 01:29 PM

benfattino gravatar image

benfattino
213 61 74 76

(comments are locked)
10|3000 characters needed characters left

1 answer: sort voted first

From the Texture2D unity doc :

Texture Sizes

Ideally texture sizes should be powers of two on the sides. These sizes are as follows: 2, 4, 8, 16, 32, 64, 128, 256, 512, 1024 or 2048 pixels. The textures do not have to be square, i.e. width can be different from height.

It is possible to use other (non power of two) texture sizes with Unity. Non power of two texture sizes work best when used on GUI Textures, however if used on anything else they will be converted to an uncompressed RGBA 32 bit format. That means they will take up more video memory (compared to PVRT(iOS)/DXT(Desktop) compressed textures), will be slower to load and slower to render (if you are on iOS mode). In general you'll use non power of two sizes only for GUI purposes.

Non power of two texture assets can be scaled up at import time using the Non Power of 2 option in the advanced texture type in the import settings. Unity will scale texture contents as requested, and in the game they will behave just like any other texture, so they can still be compressed and very fast to load.

more ▼

answered Mar 05 '12 at 01:38 PM

fafase gravatar image

fafase
19.4k 18 27 68

I am a fool. Will I have looked at the guide 200 times. Thanks for your patience.

Mar 05 '12 at 01:50 PM benfattino

No worries, I actually learn myself sometimes trying to figure out other's questions. I have to look for it and sometimes find out some good info. So as long as one does not ask stuff like do my code or will it rain on Sunday, I am fine with helping.

Mar 05 '12 at 05:37 PM fafase
(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x3128
x402

asked: Mar 05 '12 at 01:29 PM

Seen: 5170 times

Last Updated: Mar 05 '12 at 05:37 PM