Jump to content
  • Advertisement
Sign in to follow this  
jor1980

Are there any dds type with its mipmaps unordered?

This topic is 1324 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
Advertisement

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
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!