Texture Compression
by John Doppler Schiff · in Technical Issues · 05/19/2006 (7:40 am) · 3 replies
Hi folks,
I'm trying to glean some information about TGE's handling of compression, but I've come up empty so far.
I'm wondering:
1. Does .JPG or .PNG compression make a difference in either the memory usage or file size of a completed app?
2. Does TGE support compression, or is this something we'll need TSE for?
3. If a newbie TGE coder collapses from exhaustion while searching for documentation, and nobody hears it, does he make a sound?
Thanks in advance, and apologies if this topic has been covered elsewhere!
-- JohnDopp
I'm trying to glean some information about TGE's handling of compression, but I've come up empty so far.
I'm wondering:
1. Does .JPG or .PNG compression make a difference in either the memory usage or file size of a completed app?
2. Does TGE support compression, or is this something we'll need TSE for?
3. If a newbie TGE coder collapses from exhaustion while searching for documentation, and nobody hears it, does he make a sound?
Thanks in advance, and apologies if this topic has been covered elsewhere!
-- JohnDopp
#2
05/19/2006 (11:20 pm)
Thank you much, Matt! I appreciate the speedy response. =)
#3
PNG also offers 32-bit depth, i.e. RGB plus alpha. Jpeg doesn't. So you will want PNG for decals or billboards that use an alpha channel for opacity masks.
PNG can also use some other pixel depths, like 8-bit, and perhaps 16 (not sure). At any rate, I think Png is a better choice for a number of uses. Jpeg may get you better (smaller)compression sizes for similar visual quality (which however is so subjective that it may be different from person to person )
11/24/2006 (8:38 pm)
As par as I know PNG 's compression is lossless, unlike JPEG's. If you open and save and open and save a Jpeg image agaion and again, it deteriorates as it looses information each round, even at 100% best quality setting.PNG also offers 32-bit depth, i.e. RGB plus alpha. Jpeg doesn't. So you will want PNG for decals or billboards that use an alpha channel for opacity masks.
PNG can also use some other pixel depths, like 8-bit, and perhaps 16 (not sure). At any rate, I think Png is a better choice for a number of uses. Jpeg may get you better (smaller)compression sizes for similar visual quality (which however is so subjective that it may be different from person to person )
Associate Matt Fairfax
PopCap
2. TGE can support S3TC and FXT in memory texture compression if your video card supports it (which most do nowadays). It does not support the more populat DXT compression. TSE does have some limited support for DXT compression for the Atlas terrain system and it is fairly easy to add it for everything else if you are familiar with DirectX.
3. Yes