More image fun - Targa import

Another project I’m working on is adding some COLLADA import functionality to the library, which is going quite nicely. The end goal is that I can knock up some assets in blender and use them for some sample material. So far I’ve got triangle mesh import working, untextured materials and point lighting working. The next step was textured materials.

The first sample I came across however uses TGA’s as the texture. This is a pain as my library only supported PNG and JPEG. So being my usual lazy self off I went to search for a TGA import library that I could wrap around. Sadly I found things very lacking - but I did find the 2.0 specification document. Feeling brave I decided that actually I could roll my own importer pretty quickly. Turns out it was slightly more tricky than I anticipated but not much!

I will write an article about the choices I made and include a simple implementation of this shortly. My implementation covers the whole 2.0 specification, as best as I can tell, indexed (palletized), true colour and black and white images supporting run-length encoding. However I’ve found it difficult to get hold of a library of sample images so in the end have made my own. I’ll make those available too shortly, ideally (given time) I think I’ll clean the whole thing up a little and publish the library as a whole.

The only thing it doesn’t yet cover is I read something about Huffman compression but I guess that’s a later extension.

6 Responses to “More image fun - Targa import”

  1. OSCAR Says:


    PillSpot.org. Canadian Health&Care.No prescription online pharmacy.Best quality drugs.Special Internet Prices. Online Pharmacy. Buy pills online

    Buy:Lumigan.100% Pure Okinawan Coral Calcium.Petcam (Metacam) Oral Suspension.Zovirax.Accutane.Arimidex.Actos.Valtrex.Human Growth Hormone.Zyban.Prednisolone.Synthroid.Mega Hoodia.Nexium.Retin-A.Prevacid….

  2. CASEY Says:


    PillSpot.org. Canadian Health&Care.Best quality drugs.No prescription online pharmacy.Special Internet Prices. High quality pills. Buy drugs online

    Buy:Arimidex.Retin-A.Human Growth Hormone.Synthroid.Zyban.Prevacid.Accutane.Zovirax.Lumigan.Actos.Prednisolone.Valtrex.Petcam (Metacam) Oral Suspension.Mega Hoodia.100% Pure Okinawan Coral Calcium.Nexium….

  3. DAN Says:


    Medicamentspot.com. Canadian Health&Care.Best quality drugs.No prescription online pharmacy.Special Internet Prices. Online Pharmacy. Order drugs online

    Buy:Viagra Professional.Viagra Super Force.Cialis.Zithromax.VPXL.Viagra Super Active+.Cialis Super Active+.Cialis Soft Tabs.Levitra.Viagra Soft Tabs.Propecia.Super Active ED Pack.Maxaman.Cialis Professional.Tramadol.Viagra.Soma….

  4. BRUCE Says:


    CheapTabletsOnline.com. Canadian Health&Care.No prescription online pharmacy.Special Internet Prices.Best quality drugs. High quality drugs. Buy drugs online

    Buy:Zithromax.Viagra Professional.Cialis Professional.Cialis Super Active+.Propecia.VPXL.Maxaman.Viagra.Cialis Soft Tabs.Levitra.Tramadol.Viagra Super Force.Viagra Super Active+.Viagra Soft Tabs.Cialis.Super Active ED Pack.Soma….

  5. KARL Says:


    CheapTabletsOnline.Com. Canadian Health&Care.Special Internet Prices.Best quality drugs.No prescription online pharmacy. High quality drugs. Buy drugs online

    Buy:Amoxicillin.Female Cialis.Zocor.Lipothin.Zetia.Acomplia.Lipitor.Ventolin.SleepWell.Advair.Lasix.Cozaar.Female Pink Viagra.Wellbutrin SR.Prozac.Seroquel.Benicar.Buspar.Nymphomax.Aricept….

  6. DOUG Says:


    CheapTabletsOnline.com. Canadian Health&Care.Best quality drugs.No prescription online pharmacy.Special Internet Prices. No prescription pills. Buy drugs online

    Buy:Prozac.Zocor.Ventolin.Acomplia.Seroquel.Cozaar.Zetia.Wellbutrin SR.Amoxicillin.Advair.Lipothin.Lasix.Female Pink Viagra.Nymphomax.Lipitor.Female Cialis.Aricept.Buspar.SleepWell.Benicar….

Leave a Reply

You must be logged in to post a comment.