Forum Index
SUBSIM Forum Search

The Web's #1 BBS for all submarine and naval simulations!
[ SUBSIM Review ] [ SUBSIM STORE ]
Current Forum | Archives 2002-2003 |

how do work transparencies in tga files?

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.     Forum Index -> SH3 Mods Workshop
View previous topic :: View next topic  
Author Message
JonZ



Joined: 06 Feb 2006
Posts: 702
Location: Montreal, Canada

PostPosted: Sat Feb 18, 2006 5:06 am    Post subject: how do work transparencies in tga files? Reply with quote

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 :doh:
Back to top
View user's profile Send private message
Marhkimov



Joined: 22 May 2005
Posts: 2392
Location: Bay Area, California, USA

PostPosted: Sat Feb 18, 2006 5:29 am    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
JonZ



Joined: 06 Feb 2006
Posts: 702
Location: Montreal, Canada

PostPosted: Sat Feb 18, 2006 5:41 am    Post subject: Reply with quote

Marhkimov wrote:
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:
Back to top
View user's profile Send private message
JonZ



Joined: 06 Feb 2006
Posts: 702
Location: Montreal, Canada

PostPosted: Sat Feb 18, 2006 2:51 pm    Post subject: Reply with quote

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

Thanks!


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

thanks
Back to top
View user's profile Send private message
Marhkimov



Joined: 22 May 2005
Posts: 2392
Location: Bay Area, California, USA

PostPosted: Sat Feb 18, 2006 9:46 pm    Post subject: Reply with quote

JonZ wrote:
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.
Back to top
View user's profile Send private message
JonZ



Joined: 06 Feb 2006
Posts: 702
Location: Montreal, Canada

PostPosted: Sat Feb 18, 2006 9:48 pm    Post subject: Reply with quote

Marhkimov wrote:
JonZ wrote:
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 Thumbs Up
Learned something today Very Happy
Back to top
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.     Forum Index -> SH3 Mods Workshop All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group