Sign in to follow this  
Chon-Ji

Loading .TGA images

Recommended Posts

Hello! Is it possible to load other image format besides .bmp? I need to use .gif, .tga or any of those formats that can be transparent. thanks [Edited by - Chon-Ji on November 26, 2005 7:39:48 AM]

Share this post


Link to post
Share on other sites
Yep there sure is, have a look at lesson 33 for Targas. If you want to load other formats such as gif and png then have a look at the Wotsit website for the file specification.

There are libraries, such as DevIL, that can do the grunt work for you but I don't have any experience with those so I shall let somebody else comment on them.

Hope that helps.

Share this post


Link to post
Share on other sites
the OpenGL Texture Manager Example supports tga, bmp & pcx. Handles colour-mapped and RLE compressed tga's....

You might want to use devil though. It's pretty damn good. Trying to write your own png, jpg or tiff loader requires more ability and time than most people have ;) There are seperate libs available to load and save those formats, however if you use devil, you get all of those wrapped up in a single easy to use interface.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this