Texture formats - why tga?
Moderators: MR.D, Moderators
Texture formats - why tga?
I know this caused a lot of problems already, but I have to add some facts to the discussion, because I wouldn't like to see a lot of bandwidth and HD space wasted because of this.
SJ already said in another thread that DDS would be the best format because it is smaller in game, but if you really insist on not using it for some reason, don't use TGA!
TGA is uncompressed and about the biggest it can get. Better choose PNG if you don't want DDS, or JPG so you can set compression ratio like you want. PNG is lossless, so you are guaranteed to have the same quality as TGA, but with much smaller filesize.
The DDS artifacts are usually very small too (also depending on which DDS compression you choose), so there are usually no arguments not to choose it. If the differences are really huge, there has to be a bug involved somewhere, and it should be fixed...
SJ already said in another thread that DDS would be the best format because it is smaller in game, but if you really insist on not using it for some reason, don't use TGA!
TGA is uncompressed and about the biggest it can get. Better choose PNG if you don't want DDS, or JPG so you can set compression ratio like you want. PNG is lossless, so you are guaranteed to have the same quality as TGA, but with much smaller filesize.
The DDS artifacts are usually very small too (also depending on which DDS compression you choose), so there are usually no arguments not to choose it. If the differences are really huge, there has to be a bug involved somewhere, and it should be fixed...
- SwiftSpear
- Classic Community Lead
- Posts: 7287
- Joined: 12 Aug 2005, 09:29
- Wolf-In-Exile
- Posts: 497
- Joined: 21 Nov 2005, 13:40
Not for complex images. I'd use them for smoths gundam or arghs nano blobs textures perhaps due the their design of being limited in colours. However in mods where camo and such are used extensively I'd go with low compression jpg's or so I'm hearing dds but I can't say on dds due to lack of experience.AF wrote:Yah png's rock
PNGs are decompressed upon loading. DDS is loaded as a compressed texture. That's the difference, the compression in a DDS file will remain in place even when it's loaded into texture memory. A 4096x4096x24bit texture will take 48 MB texture memory as a TGA, PNG, BMP, etc. As a DDS (assuming DXT1) that would be reduced to roughly 8 MB (assuming a 6:1 compression ratio which I think is what DXT1 gives you). Granted, you may not use any texture that large but if you add all your textures together you can end up with the same size. Many Spring mods are made with ancient graphics specs so they'll run well on a modern machine even with uncompressed textures. However, if you were to approach modern specs for your textures (e.g. 512x512 or 1024x1024 per unit) you can easily hit the texture memory limit and that means your framerate dies.
PNG supports 8bits per colour ie 24bit or 16.7million colours, plus an 8bit alpha channel. That is as much as any other format you could use. If you were talking about GIFs I'd understand your point.Das Bruce wrote:Not for complex images. I'd use them for smoths gundam or arghs nano blobs textures perhaps due the their design of being limited in colours. However in mods where camo and such are used extensively I'd go with low compression jpg's or so I'm hearing dds but I can't say on dds due to lack of experience.AF wrote:Yah png's rock
I think he's talking about the fact that PNG has difficulties compressing complex images, which is understandable since you can't really compress complex stuff losslesslyWeaver wrote:PNG supports 8bits per colour ie 24bit or 16.7million colours, plus an 8bit alpha channel. That is as much as any other format you could use. If you were talking about GIFs I'd understand your point.Das Bruce wrote:Not for complex images. I'd use them for smoths gundam or arghs nano blobs textures perhaps due the their design of being limited in colours. However in mods where camo and such are used extensively I'd go with low compression jpg's or so I'm hearing dds but I can't say on dds due to lack of experience.
http://registry.gimp.org/plugin?id=4816Snipawolf wrote:I could swear GIMP had some sort of DDS plug-in, I think it would be useful...
You obviously didnt search for it did You ?
Yup. There's still compression.jcnossen wrote:PNG is lossless. A complex image will end up a little bigger yes. But still smaller than TGA and with no loss of qualityI think he's talking about the fact that PNG has difficulties compressing complex images, which is understandable since you can't really compress complex stuff losslessly
btw. I recommened using pngout to get the last bit of compression out of PNGs. Use PNGGauntlet if you need a GUI for this tool.
It tries to compress PNG even more without decompressing being slower. However, compression may take a while...
Yes but I'm comparing it with low loss jpg.jcnossen wrote:PNG is lossless. A complex image will end up a little bigger yes. But still smaller than TGA and with no loss of qualityI think he's talking about the fact that PNG has difficulties compressing complex images, which is understandable since you can't really compress complex stuff losslessly
- LathanStanley
- Posts: 1429
- Joined: 20 Jun 2005, 05:16
