PDA

View Full Version : Reading Image Formats For Use As Textures



Ebola
08-26-2000, 12:57 PM
Ok so this is probably not the place to ask about it, and I know the topic has been covered before but anyway . . .

. . . Anybody know a place where I can get some easy to understand information on accessing/loading *.tga and *.bmp image formats.

I did managed to scrounge a BMP Loader off somebody here - (Thanx - Humus) . . . But it still confuses me http://www.opengl.org/discussion_boards/ubb/confused.gif

. . . I tried http://www.wotsit.org but it read like total giberish. I'm not too good with Bits and Byte and thier manipulation . . . so does anybody know where I can find some easy to understand Loaders to use for reference for my own . . . I would perfer to at least attempt to write my own, I just need a little help you see . . . http://www.opengl.org/discussion_boards/ubb/biggrin.gif

[This message has been edited by Ebola (edited 08-26-2000).]

Pauly
08-28-2000, 06:53 AM
Take a look at my .raw loader - you'll get the general idea. There's also the .tga loader. Its inefficient, partly due to its 'readability'. Just ignore the RLE code and its pretty straight forward.
http://home.clara.net/paulyg/ogl.htm