2013-11-19, 10:52 PM
Yeah, it is. I've actually started writing the TXR importer with high color.
It was because of working on high color first that I was able to tell it was just a repeat, since high color is 3bytes per pixel - aka R is one byte, and so is B and G... because of that, and comparing it with the regular .txr, you can see that it's the same data, just more of it... just rgb values...
The importer so far scraps that data, since it's really not needed for BMP, and it will be easy to calculate when reversing the process (bmp - txr)...
Pretty much instead of taking the entire file, I've just made it do some simple math before it imports... (width*height)*3... I don't think this will work if a file has a CLUT though. Not looking forward to working on the BMP and TXR style of cluts, they both look really, really messy...
When I have the 256 (16bpp) loader done, I'll release a version update -- It'll mean this one stays on development for a while longer though...
Hopefully when this is all done, it'll provide a more convenient way for people to get textures back from the .txr, than the 'map piece viewer' technique I've seen floating around
It was because of working on high color first that I was able to tell it was just a repeat, since high color is 3bytes per pixel - aka R is one byte, and so is B and G... because of that, and comparing it with the regular .txr, you can see that it's the same data, just more of it... just rgb values...
The importer so far scraps that data, since it's really not needed for BMP, and it will be easy to calculate when reversing the process (bmp - txr)...
Pretty much instead of taking the entire file, I've just made it do some simple math before it imports... (width*height)*3... I don't think this will work if a file has a CLUT though. Not looking forward to working on the BMP and TXR style of cluts, they both look really, really messy...
When I have the 256 (16bpp) loader done, I'll release a version update -- It'll mean this one stays on development for a while longer though...
Hopefully when this is all done, it'll provide a more convenient way for people to get textures back from the .txr, than the 'map piece viewer' technique I've seen floating around