Log in

View Full Version : how do work transparencies in tga files?


JonZ
02-18-06, 05:06 AM
I was trying to modify something in Bordinstrumente_1.7 in psCS2

but when I resaved the tga file, the alpha don't seems to kick in.

All the items are square with all the background in black
Saved in 24bits and 32 bits later, no RLE... I'm getting this:

http://img224.imageshack.us/img224/5958/peri2ry.jpg (http://imageshack.us)


I reopened the file and the Alpha channel was still there

what went wrong :doh:

Marhkimov
02-18-06, 05:29 AM
Save in 32 bits, not 24. Also don't check RLE.

That should preserve the alpha channel.


The result size of the file should be 4mb.

JonZ
02-18-06, 05:41 AM
Save in 32 bits, not 24. Also don't check RLE.

That should preserve the alpha channel.


The result size of the file should be 4mb.


That's weard, I could have sworn I had tried it in 32 bits. Perhaps because I did not reboot the game (just exited to the officer docks office and reload the mission). It s working now :doh:


Well thanks :doh:

JonZ
02-18-06, 02:51 PM
Yeah that was it... The game needs complete reboot to make reload the tga file :roll:

Thanks!


Also is there a guideline when to use 24bits and 32 bits and RLE compression? Never saved in TGA for mods before...

thanks

Marhkimov
02-18-06, 09:46 PM
Also is there a guideline when to use 24bits and 32 bits and RLE compression? Never saved in TGA for mods before...
Here's my guideline...


If your TGA files have alpha channels, save them as 32 bits. Do not check RLE compression otherwise the alpha channel will not be saved.

If your TGA files do not have alpha channels, save them as 24 bits. Check RLE compression and that should help to shrink the file size, without losing much color quality.

I avoid saving as 16 bits, since you will lose a lot of color quality if you do so.

JonZ
02-18-06, 09:48 PM
Also is there a guideline when to use 24bits and 32 bits and RLE compression? Never saved in TGA for mods before...
Here's my guideline...


If your TGA files have alpha channels, save them as 32 bits. Do not check RLE compression otherwise the alpha channel will not be saved.

If your TGA files do not have alpha channels, save them as 24 bits. Check RLE compression and that should help to shrink the file size, without losing much color quality.

I avoid saving as 16 bits, since you will lose a lot of color quality if you do so.

Thanks alot :up:
Learned something today :D