• Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
7
Question by MapuHoB · Jul 19, 2015 at 07:59 AM · mipmaps

only pot textures can be compressed if mipmaps are enabled

The way I understand the message- if I've checked the mipmaps checkbox & my texture is NPOT, it's even worse than without mipmaps because without mimaps at least I'd get a compression and with mipmaps I get no compression at all because they are NPOT. This is the way I understand it.

No matter if the above is true or false, 1 thing is for sure, having only or the majority of sprites to be POT is a performance boost, at least on older devices(android). The thing is that the way the game is designed, it'd be extremely hard to have all or the majority of sprites to be POT.

1) Let's say we've got 500 textures in a small 2d game. 20 of which are backgrounds and the rest- in game stuff. How many should be the normal number for POT sprites included in the total number of 500?

2) How can I make the majority of sprites to be POT, taking into consideration that they have definite size?

3) In which situation should I make sure the sprites are POT and in which it woudn't matter much?

4) How can I maximize the number of POT sprites in my game?

Comment
Add comment · Show 5
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Eric5h5 · Jul 19, 2015 at 08:54 AM 0
Share

It's trivial to make any texture POT; change the texture type to advanced and set the non power of 2 setting to something other than "none". Or just add padding in Photoshop or whatever.

avatar image MapuHoB · Jul 20, 2015 at 10:52 PM 0
Share

Tnx for the reply, the thing is that I'm using sprites not textures and I can't use the advanced options there.

avatar image Eric5h5 · Jul 21, 2015 at 01:08 AM 0
Share

Change the texture type to advanced.

avatar image MapuHoB · Jul 21, 2015 at 12:17 PM 1
Share

I tried the thing that you said but I coudn't actually understand how exactly to make it work for my case. http://i.imgur.com/owOLtfv.png This is simple scene example of my project & all the gameObjects inside are being rendered on the screen with the SpriteRenderer and when I make the textures from Sprite to Advanced and apply it, I'm not allowed to use them in my scene.

avatar image livingtech MapuHoB · Apr 14, 2016 at 08:52 PM 0
Share

I have this same issue. I'm attempting to use the image in a UI button, so it needs to be the Sprite (2D and UI) Texture Type.

2 Replies

· Add your reply
  • Sort: 
avatar image
6

Answer by litebox · Apr 04, 2016 at 01:56 PM

You just need to use "power of 2 size of image": for exmple, 512x512 pixels, then sprite (2D and UI) will be compressed automatically.

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image
0

Answer by virgilcwyile · Feb 29, 2020 at 12:36 PM

Yes @litebox is right that the image should be in the power of 2. 128x128, 256x256, 512x512 etc. I and my team created a tool to change NPOT texture to a POT texture for one of our project. We had to compress Memory Size in IOS and Android. Check it out it's free. http://bluecreazione.com/imageprocessor/

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

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

Welcome to Unity Answers

The best place to ask and answer questions about development with Unity.

To help users navigate the site we have posted a site navigation guide.

If you are a new user to Unity Answers, check out our FAQ for more information.

Make sure to check out our Knowledge Base for commonly asked Unity questions.

If you are a moderator, see our Moderator Guidelines page.

We are making improvements to UA, see the list of changes.



Follow this Question

Answers Answers and Comments

26 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

About MipMaps problem. 4 Answers

Compute Shader and mipmaps auto-generation 0 Answers

Seams between tiled textured cubes 2 Answers

is this a mipmap problem? 1 Answer

getting mip mapping to work on sprites 0 Answers

  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges