09-13-2013, 05:45 PM
I assume you mean to parse the images as if they're DXT5 instead of DXT1? (Since I'm exporting as PNG...)
Anyhoo, new version: https://dl.dropboxusercontent.com/u/3181...ssANB2.zip
I added commandline flags to give you more control over the program and how it treats data:
-dxt1
Treat images as if they're DXT1-compressed (default)
-dxt3
Treat images as if they're DXT3-compressed
-dxt5
Treat images as if they're DXT5-compressed
-separate
Output separate images for color and multiply (default is off)
-col-only
Same as above, but only output color images
-mul-only
same as -separate, but only output multiply images
-nopiece
Don't attempt to reconstruct images from image piece data (default: attempt to reconstruct images)
I did notice that the rounding errors on piece reconstruction were quite a good deal worse when just outputting the color map, so be warned of that. I'm not sure if there's an image library that supports fractional image coordinates, though...
Cheers!
-Daxar
Anyhoo, new version: https://dl.dropboxusercontent.com/u/3181...ssANB2.zip
I added commandline flags to give you more control over the program and how it treats data:
-dxt1
Treat images as if they're DXT1-compressed (default)
-dxt3
Treat images as if they're DXT3-compressed
-dxt5
Treat images as if they're DXT5-compressed
-separate
Output separate images for color and multiply (default is off)
-col-only
Same as above, but only output color images
-mul-only
same as -separate, but only output multiply images
-nopiece
Don't attempt to reconstruct images from image piece data (default: attempt to reconstruct images)
I did notice that the rounding errors on piece reconstruction were quite a good deal worse when just outputting the color map, so be warned of that. I'm not sure if there's an image library that supports fractional image coordinates, though...
Cheers!
-Daxar