Advertisement

Load tiff images instead of bmp(Lesson 06)

Started by June 27, 2004 06:48 AM
3 comments, last by Mystery 20 years, 5 months ago
Hi all I am new here and also to openGL. In lesson 6, we have a tutorial on how to load bmp files as texture. May I know how should I go about loading tiff files instead of bmp files? Thanks in advance. Cheers
You'll either have to find a lib that is able to load .tiff-images or write your own.

The one you're using in Lesson 06 (glaux) is only capably of dealing with .bmp afaik.

If you want to write your own take a look at wotsit. Otherwise take a look at SDL, I think it comes with an image library.

Edit: btw. for the sake of saving disk-space I'd recommend using .png. Loading a 10 kB compressed image and doing some decompression in memory might even be faster then loading the same image uncompressed with 100 kB, since the disk is considerably slower then cpu/memory.
How do I set my laser printer on stun?
Advertisement
Quote: Original post by Wildfire
You'll either have to find a lib that is able to load .tiff-images or write your own.

The one you're using in Lesson 06 (glaux) is only capably of dealing with .bmp afaik.

If you want to write your own take a look at wotsit. Otherwise take a look at SDL, I think it comes with an image library.

Edit: btw. for the sake of saving disk-space I'd recommend using .png. Loading a 10 kB compressed image and doing some decompression in memory might even be faster then loading the same image uncompressed with 100 kB, since the disk is considerably slower then cpu/memory.


Thanks. Actually I tried using the libtiff but had problems getting it work in Visual c++ because it is unable to locate a dlibtiff.lib file.
google for it and download it.
Quote: Original post by DerAnged
google for it and download it.


Tried that but still couldn't find it.

This topic is closed to new replies.

Advertisement