Invalid number of mip maps

Hi,

When importing a .dds file, which opens fine in DirectX Texture Tool and Photoshop using Nvidia’s dds plugin, I get the following error:

Invalid number of mip maps.

The dds file contains 5 mip levels, using DXT5 compression. Is there any limit on mip levels in Unity?

Regards,
Jorrit

NB. Would be great to get the actual number of mip levels found displayed in the message.

Well, my 512x512 textures seem to use 9 mipmaps and my 1024x1024 textures seem to all use 10, so maybe that’s the number that Unity expects. For every power of 2, one mipmap.

2 = 1, 4 = 2, 8 = 3, 16 = 4, 32 = 5, 64 = 6, 128 = 7, 256 = 8, 512 = 9, 1024 = 10, etc…

That did the trick :slight_smile: