Sign in to follow this  

Are there any dds type with its mipmaps unordered?

This topic is 1111 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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.

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

This topic is 1111 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this