Skip to content

Cubemap Support

Compare
Choose a tag to compare
@Torphedo Torphedo released this 30 Dec 06:20

New in this release:

  • Cubemap textures have basic support
  • Mipmaps are now enabled in brute force dumps, if the texture format/resolution guessing hasn't gone completely wrong.
  • Basic texture replacement with the --replace flag. Currently hardcoded to write to out.alr

Thanks to blasianblazy for showing me that there were not only multiple, but 6 textures in one of the ALR texture buffers. Without this, I have no idea how long I would've taken to notice. All stages have these cubemaps (I thought they were stage previews before).

Note: all textures in a cubemap after the first will start with black blocks and look corrupted because of leftover padding bytes. Each texture in the ALR is padded to the next 0x100 boundary. Stage cubemaps seem to be 64x64, so you can fix this by hex editing out the 5 chunks of 0x50 blank bytes you see in the DDS file after scrolling for a while. Don't bother removing the chunk at the end, it doesn't help at all and can really easily break the DDS file.

This is a bit of a glaring issue, but I just wanted to get a release out for Blazy to tinker with.