SUBSIM Radio Room Forums



SUBSIM: The Web's #1 resource for all submarine & naval simulations since 1997

Go Back   SUBSIM Radio Room Forums > Silent Hunter 3 - 4 - 5 > SHIII Mods Workshop
Forget password? Reset here

Reply
 
Thread Tools Display Modes
Old 02-18-06, 05:06 AM   #1
JonZ
Stowaway
 
Posts: n/a
Downloads:
Uploads:
Default how do work transparencies in tga files?

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:




I reopened the file and the Alpha channel was still there

what went wrong
  Reply With Quote
Old 02-18-06, 05:29 AM   #2
Marhkimov
Admiral
 
Join Date: May 2005
Location: Bay Area, California, USA
Posts: 2,377
Downloads: 0
Uploads: 0
Default

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.
__________________
It takes two to tango
Marhkimov is offline   Reply With Quote
Old 02-18-06, 05:41 AM   #3
JonZ
Stowaway
 
Posts: n/a
Downloads:
Uploads:
Default

Quote:
Originally Posted by Marhkimov
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


Well thanks
  Reply With Quote
Old 02-18-06, 02:51 PM   #4
JonZ
Stowaway
 
Posts: n/a
Downloads:
Uploads:
Default

Yeah that was it... The game needs complete reboot to make reload the tga file

Thanks!


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

thanks
  Reply With Quote
Old 02-18-06, 09:46 PM   #5
Marhkimov
Admiral
 
Join Date: May 2005
Location: Bay Area, California, USA
Posts: 2,377
Downloads: 0
Uploads: 0
Default

Quote:
Originally Posted by JonZ
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.
__________________
It takes two to tango
Marhkimov is offline   Reply With Quote
Old 02-18-06, 09:48 PM   #6
JonZ
Stowaway
 
Posts: n/a
Downloads:
Uploads:
Default

Quote:
Originally Posted by Marhkimov
Quote:
Originally Posted by JonZ
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
Learned something today
  Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 04:44 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright © 1995- 2025 Subsim®
"Subsim" is a registered trademark, all rights reserved.