View Full Version : JPEG, PNG, TIFF

10-15-2003, 08:04 PM
Is it possible to display the .JPEG, .PNG and .TIFF images in the OpenGL rendering context? If possible, from where i can download the info.

10-15-2003, 10:49 PM
Either use a lib that supports your file formats (TIFF isn't supported widely due to some technical limitations of that format) or grab the file format's specs at http://www.wotsit.org and load them by yourself.

10-16-2003, 07:30 PM
Yes its possible but from experience I have found jpegs to be more of a hassle then anything. First of all the file is read in reverse so every other texture format will look right but if you draw your jpeg with out reversing you texture coords, the image will be upside down. Plus its a lossy format. I personally prefer tga's. They can get big at times but there are ways to compress them.

10-16-2003, 07:37 PM
Targa is fun to say, too. Targa targa!

10-16-2003, 08:56 PM
use DevIL, at sourceforge, to load various images; in the most cases it works without problems, but there are some non-pursuable bugs with some images from time to time...

[This message has been edited by DJSnow (edited 10-16-2003).]

10-18-2003, 07:58 PM
There are many tutorials and code to load TGA and jpg files. They are commonly used in games. For jpg files I would suggest using libjpg TGA files you can create your own function for. google it/search the fourms here.