PDA

View Full Version : JPG loading



Askrlfg
03-13-2002, 06:16 AM
I would like to know how can I load JPG images because BMP images are too big. Someone can help me? thanks

zeckensack
03-13-2002, 06:25 AM
Google helps me find everything. It just found this (http://www.ijg.org/) for me. I like Google http://www.opengl.org/discussion_boards/ubb/smile.gif

nexusone
03-13-2002, 07:30 AM
You may also may want to think about using TGA's there are a lot of examples of loading this format out there.

Unless you are keeping the images compressed in memory, JPG will not save you anything other then disk space, over a BMP or TGA, once it is converted into a bitmap texture in memory.


Originally posted by Askrlfg:
I would like to know how can I load JPG images because BMP images are too big. Someone can help me? thanks

Askrlfg
03-13-2002, 09:34 AM
Thank you...my problem is saving disk space, because I need a lot of images with high resolution...I'll see the link...thank you

nexusone
03-13-2002, 10:38 AM
TGA's can be saved in compressed format.
The TGA loader's I have seen support loading TGA's in the compressed format.



Originally posted by Askrlfg:
Thank you...my problem is saving disk space, because I need a lot of images with high resolution...I'll see the link...thank you

blender
03-13-2002, 11:26 AM
Have you think about using allegro + allegroGL. If you have heard about them.
Allegro includes BMP, TGA and PCX loading (plus a lot of other things http://www.opengl.org/discussion_boards/ubb/smile.gif)
You can also get a JPG loading add-on for allegro, which is very eay to use.

pleopard
03-13-2002, 01:05 PM
Intel's JPEG Library (IJL) Rocks and is free for non-commercial use. A great example of using it with MFC/OpenGL can be found at http://codeguru.earthweb.com/opengl/snaptojpeg.shtml

kehziah
03-13-2002, 01:40 PM
You might be interested in DevIL ( http://www.imagelib.org )

It can load many formats (JPG, PNG, TGA, DDS, even PSD in the latest release) and is easy to use.

[This message has been edited by kehziah (edited 03-13-2002).]

rpxmaster
03-13-2002, 04:05 PM
Yes...use DevIL. This is what I use for loading images in my OpenGL aps. It's easy to use, and it works on Borland :)
www.imagelib.org (http://www.imagelib.org)

Askrlfg
03-14-2002, 12:48 AM
thank you all