This site contains adult imagery and is not suitable for people below 18 years of age.

By using this site, you attest that you're 18 years or older.

This site also uses cookies, but only for functions related to the site, such as storing sessions and user choices.

We do not put tracking cookies on your computer.

Sending request ...

Texture and image format.

I've noticed that textures and images can only be imported if they have a power of 2, size of 256x256, or 512x512 and so on. This heavily restricts the textures I'm able to use, as attempting to crop the image to fit, tends to destroy it and I've yet to find a method of simply resizing the image I want to use, editing apps seem to not like this. Is there anyway we could use textures and images of varying sizes?

Developer response

Since Unity texture importer supports only "power of 2" formated textures there is nothing we can change about this fact on developer bsis. It's simply how game design is working.

-Blacky

Comments
dXNpbmcgYSBub24gcG93ZXIgb2YgMiB0ZXh0dXJlIHdvdWxkIHN0cmV0Y2ggaXQuIElmIHlvdSdyZSBva2F5IHdpdGggc3RyZXRjaGluZyBpdCwgeW91IG1heSBqdXN0IGFzIHdlbGwgc3RyZXRjaCBpdCBtYW51YWxseSBhbmQgc2F2ZSBpdCBpbiB0aGUgY29ycmVjdCBmb3JtYXQuIEkuZS4sIGp1c3QgY3JlYXRlIGEgY2FudmFzIG9mIHRoZSBjb3JyZWN0IHNpemUsIHBhc3RlIHlvdXIgaW1hZ2UgYW5kIHRyYW5zZm9ybSBpdCBzbyBpdCBtZWV0cyB0aGUgY29ybmVycy4gWW91IGNhbiBkbyB0aGlzIGluIHBob3Rvc2hvcCB3aXRoIHRoZSB0cmFuc2Zvcm0gdG9vbC4=

using a non power of 2 texture would stretch it. If you're okay with stretching it, you may just as well stretch it manually and save it in the correct format. I.e., just create a canvas of the correct size, paste your image and transform it so it meets the corners. You can do this in photoshop with the transform tool.

3 years, 7 months ago
QG9kZXMNCj4gdXNpbmcgYSBub24gcG93ZXIgb2YgMiB0ZXh0dXJlIHdvdWxkIHN0cmV0Y2ggaXQuIElmIHlvdSdyZSBva2F5IHdpdGggc3RyZXRjaGluZyBpdCwgeW91IG1heSBqdXN0IGFzIHdlbGwgc3RyZXRjaCBpdCBtYW51YWxseSBhbmQgc2F2ZSBpdCBpbiB0aGUgY29ycmVjdCBmb3JtYXQuIEkuZS4sIGp1c3QgY3JlYXRlIGEgY2FudmFzIG9mIHRoZSBjb3JyZWN0IHNpemUsIHBhc3RlIHlvdXIgaW1hZ2UgYW5kIHRyYW5zZm9ybSBpdCBzbyBpdCBtZWV0cyB0aGUgY29ybmVycy4gWW91IGNhbiBkbyB0aGlzIGluIHBob3Rvc2hvcCB3aXRoIHRoZSB0cmFuc2Zvcm0gdG9vbC4NCg0KDQpvayBjb29sLCB0aGFua3MuDQo=

@odes

using a non power of 2 texture would stretch it. If you're okay with stretching it, you may just as well stretch it manually and save it in the correct format. I.e., just create a canvas of the correct size, paste your image and transform it so it meets the corners. You can do this in photoshop with the transform tool.

ok cool, thanks.

3 years, 7 months ago

1

vote sum by 1 user.
Suggestion status
Declined.
Spend votes
Suggester
3 years, 7 months ago