   writing to TGA files...
  ok!i noe some of u pple sure hav no problems writing lightmap lumels to TGA files.i generated 9 tiny lightmaps, tried to write them to the tga format, found out that some of the tga files written cannot be opened! (i am using an old version of paint shop pro7)i tried to log to see if there were any errors encountered during the writing of the tga file. there were none...any ideas to help?thx!edwinz 
  Well, there''s either a bug in your TGA writer, resulting in an invalid TGA file. Or PP can''t properly read TGA files. I tend to believe the former.Other than that, no help possible with the very limited information you provided. Post your TGA-writer source, and we will see further.;  edwinnie: What bit depth are these TGA files?.if they''re Targa 16''s (i.e. 16bits per pixel), or even a custom bit depth (TGA potentially allows that), then AFAIK, Paint Shop Pro isn''t capable of reading them.Unusual palette sizes may cause trouble too.Alternatively, as mentioned, there could be a bug in your writer. Maybe it''s forgetting the footer etc (depending if PSP can read old style TGAs).I''d suggest you get hold of the original TrueVision source code and utilities and test your writer against those. I.e. if TGADUMP says there''s a problem, check the writer. If not, check the PSP docs for file format limitations.   --Simon O''Connorex  -Creative AsylumProgrammer &Microsoft MVP;  hmm... jus found out that it opens nicely using the dxtex tool...thx aniwae!edwinz 