grendizerufo / nvidia-texture-tools

Automatically exported from code.google.com/p/nvidia-texture-tools
Other
0 stars 0 forks source link

Add support for palette index 0 is transparency color flag #69

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
i re-bolted up the freeimage support since i needed to read more formats it 
works ok as far as i can tell no issues yet.

you need to add a flag for palette index 0 meaning transparent though.

Original issue reported on code.google.com by andi.ire...@gmail.com on 27 Oct 2008 at 4:47

GoogleCodeExporter commented 9 years ago
Feel free to submit patches with your changes!

Original comment by cast...@gmail.com on 27 Oct 2008 at 8:21

GoogleCodeExporter commented 9 years ago
how would you implement it

( i hacked it horrifically in by passing it along the whole image load API 
chain 
since i couldn't access any options blocks from inside the image load code 
easily )

If i was given some hints on a best way o implement the passing down i will 
submit a 
patch for it.

Also passing on the binary alpha ( and alpha ref ) to free image is useful

Original comment by andi.ire...@gmail.com on 28 Oct 2008 at 1:12

GoogleCodeExporter commented 9 years ago
I'm not sure what you mean. Paletted images should be converted to RGBA at load 
time. Why don't you simply set the alpha to 0 at load time? How do you 
determine whether 
palette index 0 is supposed to be used for transparency or not?

Original comment by cast...@gmail.com on 28 Oct 2008 at 1:40

GoogleCodeExporter commented 9 years ago

Original comment by cast...@gmail.com on 28 Oct 2008 at 1:40

GoogleCodeExporter commented 9 years ago

Original comment by cast...@gmail.com on 28 Oct 2010 at 5:48