Open luizzeroxis opened 1 month ago
Download the artifacts for this pull request here:
GUI:
CLI:
There is another file extension that was never mentioned before. (e.g. .ASTC
for mobile platforms, .GNF
for playstation platforms)
@sonic3XE Could you send a game that uses it, or tell which custom option and OS creates such format, so it can be tested?
It looks like Android has ASTC available.
@luizzeroxis game.droid UTMT may fail at loading that texture when trying to open. Also, it has a constant header in hex: 13 AB A1 5C
GPU-compressed textures are referred as https://github.com/UnderminersTeam/UndertaleModTool/issues/1932 including DDS, ASTC, and GNF.
Description
Fix #1907
Some games use the official GM-GPUTextureCompression extension to use GPU compressed textures. One of the formats supported is BCN compression, which uses the DDS format, at least on Windows. This PR aims to allow games using that to be modded.
Caveats
Although you can load it, there's no support for saving these textures in their original format, so it just saves in PNG format and gives a warning to the user. This works, but obviously will have a performance impact. This compression format is lossy anyway.
Notes
There's other formats supported by this extension, and in other operating systems, hopefully this can be addressed in future PRs.