Saturday 18 February 2017

Encryption

Still working on Paletted textures, but I've hit a bit of a snag... It seems that the textures are 'encrypted' or packed in a really weird way (probably encryption). The loader I have by de_lof handles all of this, (though the output is corrupt) but the code is extraordinarily hard to read, and there is hardly any explanation on what the encryption actually is. This is going to take a while, but hopefully we can get some actual goddamned textures loaded soon.. Grabbing colours from the colour palette works 100% though, which is a start. The only issue is that converting the textures inflates them from (for example), 512*512 bytes (256KiB) to a whopping 768KiB, close to a megabyte! Hopefully we can reuse textures and don't need to load in more than a hundred of so per scene, if so, we're in for a very VRAM hungry game..

No comments:

Post a Comment