• Advertisement
Sign in to follow this  

Loading textures from disk

This topic is 4933 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

What do you guys use to load texture data from disk? There' SDL_image, but I'm looking for something that's not GPL, free would be nice, but LGPL is OK too. Anything like that outthere?

Share this post


Link to post
Share on other sites
Advertisement
How about writing your own? If you want to load tga's, nehe's site has some code. Also, a complete tga loader (free), is here. (I use that)

EDIT: added link to nehe

Share this post


Link to post
Share on other sites
It occured to me that my question was rather silly.. if you were going for a specific format you could have easily done it yourself.

Take a look at these.. I'll post some more if some occur to me.

NexGenIPL supports most popular formats. Major drawback is that it's apparently only Windows. it's free though for any usage.. apparently without a license agreement of any sort.

DevIL LGPL, cross platform, most popular formats.. probably the way to go. It flows well with GL code.

ImageMagick GPL-ish license. Cross platform (and language, I believe). May be a bit more power than is needed, though.

Share this post


Link to post
Share on other sites
Corona is a C++ library, uses the zlib/libpng License.

Supports quite a few file formats, currently short dds however (I'll probably add that myself at some point, once i need it, and submit the patch back like I did with the jpg saver).

I'd grab it from the CVS tree however, the last update to the packages is last year and as I indicated above, I submitted a jpg saver which was checked in.

Share this post


Link to post
Share on other sites
A lot of image types have free non-GPL versions out there. libjpeg and libpng come to mind as ones used in both Linux and Windows applications.

Share this post


Link to post
Share on other sites
Eh, why not GPL? As long as you are using a DLL for it and they can change the DLL, it meets SDL's license and I'm pretty sure SDL_image's license. Do-it-yourself loading is what I have to do for some things and it works too.

Share this post


Link to post
Share on other sites
Quote:
Original post by Puzzler183
Eh, why not GPL? As long as you are using a DLL for it and they can change the DLL, it meets SDL's license and I'm pretty sure SDL_image's license. Do-it-yourself loading is what I have to do for some things and it works too.


That meets the LGPL requirements, and DevIL looks good, I'd heard of it before but had forgotten about it, thanks!

Share this post


Link to post
Share on other sites
hi magmai,

in our engine we have a "compiler" (or call it what you want), which loads all textures and then it does simple compiling of all the stuff into one big special file - and yes: this compiler is based on DevIL, for convenience.
but i have to note this each time, when somebody is talking about DevIL: DevIL does not load all images, but most - i'm not talking about special file formats (like CMYK JPG's), but about - for example - about the original Quake3 media: DevIL has some problems here, and it can't handle all files...
(i have told the author about the problem, but he simply ignored my request)

i you want a full featured image library, which can handle really all (!) file formats out there, head for "Leadtools image library", but it's commercial. (license is around 800EUR, IIRC?)

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement