Hello Guest

Problems with tiff loading

  • 3 Replies
  • 8130 Views
Problems with tiff loading
« on: March 07, 2006, 16:18:29 »
hi,

I'm trying to load tiff files through Devil. Basically, it works, that means, the TIFF file is loaded, but the image is upside down. ATM, I'm just rotating the image after loading, but thought this might be a bug...or am I doing something wrong?

greetings,
charlie

hmmmmmmmm....
« Reply #1 on: March 08, 2006, 14:33:37 »
What makes you think its upside down? If its because you put it on a polygon, then its probably because OpenGL uses (0, 0) as bottom, left, not top, left (meaning that it's not a bug, its just how OpenGL works :? )
If that's not why its upside down, then it might be a bug (or TIFF files are stored bottom to top instead of top to bottom :) )
Programmers will, one day, rule the world... and the world won't notice until its too late.Just testing the marquee option ;D

Problems with tiff loading
« Reply #2 on: March 08, 2006, 14:37:50 »
I'm also loading other files such as jpeg in the application and they are drawn correctly ;)
But maybe it's because of the TIFF images stored bottom to top, but shouldn't devil handle that automatically?

*

Offline oNyx

  • ***
  • 177
  • 弾幕
Problems with tiff loading
« Reply #3 on: March 08, 2006, 22:51:49 »
TIFF is a pretty odd and useless format. It also doesnt put anything new on the table.

Interesting formats (for games) are things like:
-raw 8:8:8:8, 8:8:8, 8:8, 5:6:5, 5:5:5, 5:5:5:1, 4:4:4:4 (TGA to some extend and DDS)
-lossy rgb/grayscale (JPG)
-indexed rgb (TGA/DDS)
-indexed rgba (DDS)
-precompressed dxt1-dxt5 [also lossy] (DDS)

(And there is also some normal map stuff, but I havent take a look yet.)

As long as you dont have a good reason to use TIFF, I wouldnt bother.