PNG's as Textures

Started by ggp83, June 18, 2006, 20:12:39

Previous topic - Next topic

ggp83

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

oNyx

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.

ggp83

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.