- Mar 23, 2013
- 1,013
- 347
Hello, folks.
The Frontline pack is quite a big one: over 800MB worth of data. But I noticed that a couple of textures aren't compressed and that some have an unecessary alpchannel and so I thought that I might be able to reduce the file size of the pack without any visual downside.
So I went through the files and changed every texture that could be reduced in size without changing it's visual appearance. So what I did was:
1: Compressing textures which had no compression.
Some textures were saved in the BGR888/BGRA8888 format, a loseless but big format. By changing them to the compressed DXT1/DXT5 format massivly reduced their size. While DXT is a "lossy" format, it does a brilliant job at keeping the visual quality while reducing the file size of the texture greatly. You won't notice any differences.
A few uncompressed textures were even over 10MB big, but compressed only around 1MB!
2: Removing the alpha channel from a texture if the alpha channel isn't used.
A lot of textures have an unecessary alpha channel. When saving a texture in DXT5 or BGRA8888, the format saves not only three color channels, but also an alpha channel, which is used usually for transparency but also other effects.
Appearently plenty of textures had an blank alpha channel saved and didn't made use of something like $translucent, $selfillum, $basemapalphaphongmask, $blendtintbybasealpha, or anything that requires the alpha channel to work.
So I changed the format of these textures from DXT5 to DXT1, a format that doesn't save an alpha channel and halfed the size of the files!
Results:
The material folder of the frontline pack is 770MB and after applying the patch, only 573MB. so I managed to reduce the size by a whopping 200MB (~25%) without changing the visuals of anything!
If we exclude the materials/models folder, the size of the textures were changed from 463 to 276 MB, that's 40%!
This is because most of the model materials were done correctly, are really high quality and made use of a lot of shader effects that use alpha channels. So there wasn't much to improve.
Now, I havn't asked anyone for permission to edit the assets and therefore won't upload it to this website. But I would like like to share this patch with you, because I believe some of you will appreaciate this option to make this big asset pack a bit lighter. I'm not looking to be credited, I'm just happy when people are happy about shorter downloads.
Download: http://www.mediafire.com/file/mpr3ike40xo1w33/unoffical_frontline_patch.rar
The patch only includes edited VTFs, so download the Frontline asset pack first, then overwrite the assets with the one from the patch.
I hope you guys will find this usefull to save some disk space and reduce the size of your maps.
The Frontline pack is quite a big one: over 800MB worth of data. But I noticed that a couple of textures aren't compressed and that some have an unecessary alpchannel and so I thought that I might be able to reduce the file size of the pack without any visual downside.
So I went through the files and changed every texture that could be reduced in size without changing it's visual appearance. So what I did was:
1: Compressing textures which had no compression.
Some textures were saved in the BGR888/BGRA8888 format, a loseless but big format. By changing them to the compressed DXT1/DXT5 format massivly reduced their size. While DXT is a "lossy" format, it does a brilliant job at keeping the visual quality while reducing the file size of the texture greatly. You won't notice any differences.
A few uncompressed textures were even over 10MB big, but compressed only around 1MB!
2: Removing the alpha channel from a texture if the alpha channel isn't used.
A lot of textures have an unecessary alpha channel. When saving a texture in DXT5 or BGRA8888, the format saves not only three color channels, but also an alpha channel, which is used usually for transparency but also other effects.
Appearently plenty of textures had an blank alpha channel saved and didn't made use of something like $translucent, $selfillum, $basemapalphaphongmask, $blendtintbybasealpha, or anything that requires the alpha channel to work.
So I changed the format of these textures from DXT5 to DXT1, a format that doesn't save an alpha channel and halfed the size of the files!
Results:
The material folder of the frontline pack is 770MB and after applying the patch, only 573MB. so I managed to reduce the size by a whopping 200MB (~25%) without changing the visuals of anything!
If we exclude the materials/models folder, the size of the textures were changed from 463 to 276 MB, that's 40%!
This is because most of the model materials were done correctly, are really high quality and made use of a lot of shader effects that use alpha channels. So there wasn't much to improve.
Now, I havn't asked anyone for permission to edit the assets and therefore won't upload it to this website. But I would like like to share this patch with you, because I believe some of you will appreaciate this option to make this big asset pack a bit lighter. I'm not looking to be credited, I'm just happy when people are happy about shorter downloads.
Download: http://www.mediafire.com/file/mpr3ike40xo1w33/unoffical_frontline_patch.rar
The patch only includes edited VTFs, so download the Frontline asset pack first, then overwrite the assets with the one from the patch.
I hope you guys will find this usefull to save some disk space and reduce the size of your maps.
Last edited: