Gibbed Tools modified to support compressing of images
Posted: 23 May 2013, 23:13
This post is to give everyone a modified version of Rick's great Gibbed Tools. The modified version supports compressing of images to DXT1, DXT3, and DXT5 in addition to default uncompressed TDXs.
The only real visible changes for users is the addition of some command line parameters for TdxConvert:
--d1, --dxt1 - Compress image to DXT1 format when converting to TDX.
--d3, --dxt3 - Compress image to DXT3 format when converting to TDX.
--d5, --dxt5 - Compress image to DXT5 format when converting to TDX.
--nomip - Do not create MipMaps when compressing to TDX.
Notes:
This is based on Gibbed Tools r6_b10, I only added a relatively small amount of code so I take no credit. All credit should go to Rick (aka Gibbed).
If you are looking to compress one or more images via drag and drop then you can use these batch files:
Change History:
The only real visible changes for users is the addition of some command line parameters for TdxConvert:
--d1, --dxt1 - Compress image to DXT1 format when converting to TDX.
--d3, --dxt3 - Compress image to DXT3 format when converting to TDX.
--d5, --dxt5 - Compress image to DXT5 format when converting to TDX.
--nomip - Do not create MipMaps when compressing to TDX.
Notes:
- Now will automatically convert to closest multiple of four (MoF) image size when compressing images to TDX and will automatically create MipMaps for DXT compressed images (unless user specifies --nomip as a command line parameter).
- While the TdxConvert program will accept images of any size for compression (and will decompress them properly) the game will only accept the compressed images if both width and height are multiples of 4.
This is based on Gibbed Tools r6_b10, I only added a relatively small amount of code so I take no credit. All credit should go to Rick (aka Gibbed).
If you are looking to compress one or more images via drag and drop then you can use these batch files:
- TdxConvertDXT1.bat | Open
- TdxConvertDXT3.bat | Open
- TdxConvertDXT5.bat | Open
Change History:
- February 9th, 2014
- Removed even mipmap sizing as it was apparently causing the mipmap image appearance corruption. The mipmap sizing is not stored in the TDX and the game apparently expects the mipmaps to be 1/2 of each dimension truncated to a whole integer and doesn't care if the integer is an odd number.
- July 5th, 2013
- Fixed a bug with already MoF sizes.
- Added automatic Multiple of Four (MoF) image sizing when compressing to TDX (no change in sizing will occur if converting uncompressed or if already MoF sized).
- Added generation of MipMap chain when compressing to TDX (--nomip parameter will disable).