LWJGL
May 20, 2012, 23:14:30 *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: LWJGL 2.8.3 released!
 
   Home   Help Search Login Register  



Pages: [1]
  Print  
Author Topic: Problems with tiff loading  (Read 3933 times)
Charlie
Newbie
*
Posts: 4


WWW
« on: March 07, 2006, 08: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
Logged
Fool Running
Nerdus Imperius
*****
Posts: 647


« Reply #1 on: March 08, 2006, 06: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 Smiley )
Logged

Programmers will, one day, rule the world... and the world won't notice until its too late.Just testing the marquee option Grin
Charlie
Newbie
*
Posts: 4


WWW
« Reply #2 on: March 08, 2006, 06:37:50 »

I'm also loading other files such as jpeg in the application and they are drawn correctly Wink
But maybe it's because of the TIFF images stored bottom to top, but shouldn't devil handle that automatically?
Logged
oNyx
Talks Too Much
***
Posts: 177


弾幕


« Reply #3 on: March 08, 2006, 14: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.
Logged

Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines
SMFAds for Free Forums
Valid XHTML 1.0! Valid CSS!