Hello Guest

PNG's as Textures

  • 2 Replies
  • 7190 Views
PNG's as Textures
« on: June 18, 2006, 20: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

*

Offline oNyx

  • ***
  • 177
  • 弾幕
PNG's as Textures
« Reply #1 on: June 19, 2006, 05: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.

PNG's as Textures
« Reply #2 on: June 20, 2006, 02:30:08 »
Ok, thanks. Moving over to TGA :D 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.