TGA File

This is a discussion on TGA File within the Game Programming forums, part of the General Programming Boards category; How widely used is this type of file? I know I can port it to Windows, Linux, and the Mac ...

  1. #1
    Registered User
    Join Date
    Feb 2005
    Posts
    19

    TGA File

    How widely used is this type of file? I know I can port it to Windows, Linux, and the Mac via Allegro but are there any other game libraries that support TGA files?

  2. #2
    Registered User
    Join Date
    Sep 2004
    Posts
    197
    Actually, its quiet common now, as the format is really good at defining itself, and can handle high quality uncompressed images. I know Doom 3, Unreal Tournament 2004, and World of Warcraft all export screenshots in this format. From what I can tell, its a free standard (image) file type, thats not extreamly difficult to work with. Oh, and with its support for alpha transparency, I think it could work pretty well for use as textures. Most Image manipulation programs also support it (besides MSpaint, but I don't think you will need to use that).

    I would say its pretty common.
    If any part of my post is incorrect, please correct me.

    This post is not guarantied to be correct, and is not to be taken as a matter of fact, but of opinion or a guess, unless otherwise noted.

  3. #3
    Confused Magos's Avatar
    Join Date
    Sep 2001
    Location
    Sweden
    Posts
    3,145
    It's also very easy to write TGA loaders. The only real downfall is that it's uncompressed which causes huge filesizes if you have a lot of graphics.
    MagosX.com

    Give a man a fish and you feed him for a day.
    Teach a man to fish and you feed him for a lifetime.

  4. #4
    Registered User
    Join Date
    Feb 2005
    Posts
    19
    I decided to give up TGA and go with PCX because I understand PCX better, however, I heard that both PCX and TGA are very similar. There is also no need for me to deal with anything
    higher than 24-bit graphics.

  5. #5
    Has a Masters in B.S.
    Join Date
    Aug 2001
    Posts
    2,267
    >Most Image manipulation programs also support it (besides MSpaint, but I don't think you will need to use that).

    i dunno about MS paint but most ignore the Alpha component or like PhotoShop screw it up entirely... though Aura does write TGA alphas properly

    >The only real downfall is that it's uncompressed which causes huge filesizes if you have a lot of graphics.

    the TGA spec specifically mentions RLE as a supported form compression... the spec also allows for custom image codes so... you can do whatever you want... just dont expect anything to be able to use it....

    >here is also no need for me to deal with anything
    higher than 24-bit graphics.

    just cause TGA's support 32 bit doesnt mean you have to use it? the spec technically allows for anything really... but listing 8, 16, 24, and 32 specifically... so its safe to assume those will generally be supported on anything using TGA's, especially since it requires minimal coding effort to do so.
    Last edited by no-one; 03-06-2005 at 05:18 PM.
    ADVISORY: This users posts are rated CP-MA, for Mature Audiences only.

  6. #6
    Registered User
    Join Date
    Sep 2004
    Posts
    197
    Never knew about the problem with the Alpha channel getting dropped or messed with, and what I ment by the MS Paint comment, is that it doesn't support Targa format at all. Oddly enough it seems many gamers (not developers) feel if Windows doesn't support it out of the box, its bad. even if you can find free software to open it up. The main Image editor I use myself is Gimp, but I also don't do any sort of profesional work either, just mess around with things. Ill check back and see what Gimps support is like for TGA.
    If any part of my post is incorrect, please correct me.

    This post is not guarantied to be correct, and is not to be taken as a matter of fact, but of opinion or a guess, unless otherwise noted.

  7. #7
    Has a Masters in B.S.
    Join Date
    Aug 2001
    Posts
    2,267
    >what I ment by the MS Paint comment, is that it doesn't support Targa format at all.

    oh... well i supposed that is cause MS isn't probably allowed to advance MS paint much farther than it is now.

    >Ill check back and see what Gimps support is like for TGA.

    cool...
    ADVISORY: This users posts are rated CP-MA, for Mature Audiences only.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Data Structure Eror
    By prominababy in forum C Programming
    Replies: 3
    Last Post: 01-06-2009, 09:35 AM
  2. Can we have vector of vector?
    By ketu1 in forum C++ Programming
    Replies: 24
    Last Post: 01-03-2008, 05:02 AM
  3. archive format
    By Nor in forum A Brief History of Cprogramming.com
    Replies: 0
    Last Post: 08-05-2003, 08:01 PM
  4. Making a LIB file from a DEF file for a DLL
    By JMPACS in forum C++ Programming
    Replies: 0
    Last Post: 08-02-2003, 09:19 PM
  5. Need a suggestion on a school project..
    By Screwz Luse in forum C Programming
    Replies: 5
    Last Post: 11-27-2001, 02:58 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21