LWJGL
May 20, 2012, 23:32:23 *
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: PNG's as Textures  (Read 3860 times)
ggp83
Newbie
*
Posts: 6


« on: June 18, 2006, 13:12:39 »

When I load PNG images as textures they get much brighter than they really are. However if I load the same image as TGA it displays in it's normal colors. Any solutions?

Also I'd like to know if there's a way to find out if an image needs to be flipped or not?

/ Thanks
Logged
oNyx
Talks Too Much
***
Posts: 177


弾幕


« Reply #1 on: June 18, 2006, 22:08:20 »

Most likely some gamma chunk is to blame. You can strip that one with tools like pngout or tweakpng... once you did that you'll get straight rgb values.

Pngout takes its time, but the images are usually alot smaller after that.

Well, png is a nice format, but it isnt all that useful for games. With webstart you use compression anyways, which means that TGAs (or any other raw format) ends up at about the same size (but faster loading times) and if you're using an installer with lzma compression (eg NSIS) the download will be alot smaller with raw images, because the compression scheme is superior.
Logged

ggp83
Newbie
*
Posts: 6


« Reply #2 on: June 19, 2006, 19:30:08 »

Ok, thanks. Moving over to TGA Cheesy Don't remember why I began using PNG in the first place, might have been that I used ImageIO to load my textures before and it didn't want to load TGA if I remember correctly.
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!