CodeWalker icon indicating copy to clipboard operation
CodeWalker copied to clipboard

[Fix] Fixes compressed DDS files with sizes which aren't divisble by 4, non-square compressed texture mipmaps, and ATI2 textures saved by OpenIV

Open hickorysb opened this issue 9 months ago • 23 comments

This PR would patch several additional DDS errors I found. I've done my best to comment with good explanations in the code why the changes I made were made. Prior to merge, if this does get merged I can go remove all those comments if that is desired. As for some samples of files that you can test to see before and after see the following (these errors were all found by going through the YTDs from PLOKS Car pack so all examples are from there).

  • tltypes.ytd - specifically the texture generic_leather2_n, texture has an incorrect stride baked into the YTD and the BC5 decompression method had a bit of an apparent copy/paste mistake.
  • q820.ytd - specifically the textures 1_leathern and airbag_opac1, both files had issues loading the final mipmap prior to these patches.
  • r820.ytd - specifically r8_005_diff had a similar issue with the last mipmap level.

hickorysb avatar Apr 08 '25 07:04 hickorysb