Advertisement

Are there any dds type with its mipmaps unordered?

Started by November 30, 2014 05:41 PM
0 comments, last by kolrabi 10 years, 1 month ago

Hi, I am analyzing some textures of a game.

As I always saw the dds textures has a header of 128 bytes and then their mipmaps, starting from the bigger and finishing with the smallest.

This textures of this game has the mipmaps unordered. I would like to know if this could be an special type of dds and how to read textures like these.

As far as I can see from the documentation (http://msdn.microsoft.com/en-us/library/windows/desktop/bb943991%28v=vs.85%29.aspx#File_Layout1), a valid DDS file always has the main texture first, then the mipmaps from large to small. There is nothing in the header specifying the order of the mipmaps. Neither do mipmaps have an individual header indicating their size.

Either what you have is not a DDS file at all, it uses a non-standard mipmap order or you interpret the data incorrectly.

Also consider that a DDS with a FourCC of "DX10" has an additional header after the first 128 bytes.

blah :)

This topic is closed to new replies.

Advertisement