x


NPOT texture treated as POT?

So I'm working with SM2 and I've prepared and imported a couple of pngs just to test out a 4-frame walk cycle. They are all 15px Wide by 25 px High, and have alpha transparency information. The Inspector window shows one of the frames being treated as 16x32, and the rest are 15x25 NPOT.

I can't figure out why this one single texture is being treated differently by Unity. MAC OS X sees it as 15x25. Because of the discrepancy, the Sprite Atlas has uneven-sized images, and that one frame is distorted and looks awful when it animates.

Any ideas on how to fix the problem?

more ▼

asked Oct 16 '11 at 11:35 PM

celticafro gravatar image

celticafro
1 2 2 2

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

1 answer: sort voted first

Check your texture import settings. Usually when you have textures that should be pixel-perfect, set the texture type to GUI. A normal texture is always converted into a POT texture unless you use a user-defined(advanced) setting.

more ▼

answered Oct 17 '11 at 02:35 AM

Bunny83 gravatar image

Bunny83
46.9k 12 50 210

(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:

x2279
x7
x7
x4

asked: Oct 16 '11 at 11:35 PM

Seen: 998 times

Last Updated: Oct 17 '11 at 02:37 AM