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 you make sub emblem background transparent?
Goto page Previous  1, 2
 
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 -> Silent Hunter III
View previous topic :: View next topic  
Author Message
panthercules



Joined: 30 Apr 2005
Posts: 444

PostPosted: Sun May 22, 2005 6:05 pm    Post subject: Reply with quote

snake1969 wrote:

Understand your frustration, went thru same problem a few years ago.

1) Create a new image 64x64 pixels @ 72 resolution using RGB format with background color R=9, G=13, B=31 (this is the one color that SHIII recognizes as transparent).

2) Paste your image on the background and merge the two layers so there is only one layer.

3) Save as a 24 bit TGA file and place in the SubEmblems folder.

This has worked for me and hope it helps you.


That's exactly what I've tried (finally, after trying some other things first), but no luck - still get the black square on my sub - plus, untouched stock emblems from the game also show up on my sub in game with a square background - gotta be something weird going on Sad

Beery wrote:
I have this problem too. I know it can be done in Paint Shop Pro, but I only have Photoshop. Why not just use an alternative strategy - just make the background the same as the conning tower colour?


Thought of that late last night - tried to do it by guessing at various grays a couple of quick times with no luck, then had to get some sleep - am gonna give it a try later tonight by using color dropper from a screenshot - the rust stains will screw it up some but maybe it'll at least be better than it is now - still can't figure out why this is happening, but I don't feel like dropping back to a fresh install to see if it's Real-mod related somehow just yet - maybe I'll try that when I get back to port in a few days

In the meantime - thanks for the suggestions - anybody got any other ideas?
Back to top
View user's profile Send private message
NightStalker_6889



Joined: 16 Feb 2005
Posts: 18
Location: South Africa

PostPosted: Mon May 23, 2005 7:00 am    Post subject: Reply with quote

Hi Guys

I use Photo Shop 7. I create a base layer that is transparent. Ad the rest of the layers, merge them then use " save for web " which saves it as a gif file.
Back to top
View user's profile Send private message Send e-mail Yahoo Messenger
panthercules



Joined: 30 Apr 2005
Posts: 444

PostPosted: Mon May 23, 2005 9:33 am    Post subject: Reply with quote

NightStalker_6889 wrote:
Hi Guys

I use Photo Shop 7. I create a base layer that is transparent. Ad the rest of the layers, merge them then use " save for web " which saves it as a gif file.


So, will the game use the .gif files? I thought they had to be .tga files
Back to top
View user's profile Send private message
DeepSix



Joined: 27 Mar 2005
Posts: 802
Location: DB22

PostPosted: Mon May 23, 2005 10:20 am    Post subject: Reply with quote

I think it has to be a .tga. All of the built-in emblems are 64 x 64 .tga files.
Back to top
View user's profile Send private message
Mongoose



Joined: 04 Apr 2005
Posts: 375
Location: West Australia

PostPosted: Mon May 23, 2005 10:35 am    Post subject: Reply with quote

This won't solve the underlying problem, but might work as a temporary fix...

Instead of picking out colours with eyedropper, how about cropping a section of the tower from a screenshot, or a texture file, and then using that as your background layer? It's not an ideal solution, and if your emblem is intricate it might mean a lot of tidy up when you paste it on.

By the way, you can work with a larger image than 64x64. The image will be re-sized in game. Evil Jester's emblems, for example, are much larger.
Back to top
View user's profile Send private message
panthercules



Joined: 30 Apr 2005
Posts: 444

PostPosted: Mon May 23, 2005 9:47 pm    Post subject: Reply with quote

Mongoose wrote:
This won't solve the underlying problem, but might work as a temporary fix...

Instead of picking out colours with eyedropper, how about cropping a section of the tower from a screenshot, or a texture file, and then using that as your background layer?


I tried that - cut out a square section of the tower, used it as a background and pasted my image down on top of it - unfortunately, I guess the lighting or something was different when I took the screen shot cause it still looked too much like a different color in game Sad

Guess I'll just live with the square background until I have some other brainstorm Sad But I still don't understand why the game's stock emblems are showing up with square backgrounds too - if so many people seem to be able to do it I can't figure out why mine are screwed up, but nothing surprises me as far as PC variability goes anymore so I guess I'll just have to live with it

Thanks for trying though folks, and if anybody does have any other ideas please post them and I'll give them a shot
Back to top
View user's profile Send private message
DeepSix



Joined: 27 Mar 2005
Posts: 802
Location: DB22

PostPosted: Mon May 23, 2005 10:27 pm    Post subject: Reply with quote

Ok! I goofed around with mine and actually managed to break it and fix it. It seems to be the alpha channel after all, as Cdr Gibs said earlier. I stand corrected. What I did (in Photoshop) was give mine a black alpha channel, then flattened the image, and then deleted the alpha before saving. I know, sounds weird, but that seemed to do the trick. I don't remember doing it that way before, but it worked. Maybe it works this way if the background color is not all one color value. Anyway, I think Jasc is similar enough to Photoshop that you could try this; if not or if it doesn't work feel free to send me the file and I'll see if I can do it.

Someone mentioned before that it doesn't have to be 64 x 64; this is true -- however, it should be as close to square as possible (128 x 128 or 256 x 256) because it will get stretched if it's not.
Back to top
View user's profile Send private message
panthercules



Joined: 30 Apr 2005
Posts: 444

PostPosted: Mon May 23, 2005 11:09 pm    Post subject: Reply with quote

DeepSix wrote:
Ok! ... and then deleted the alpha before saving.


Ok - I haven't messed with alpha channels before, but I think I found out how to save my black/transparent layer as an alpha channel - HOWEVER, once I've done that and flattened it I can't see any way to remove the alpha channel before saving it (I tried just saving it anyway but no luck - still got a white square background in game - for some reason, PSP seems to be giving it a white background every time it saves a copy down as a .tga file
Back to top
View user's profile Send private message
DeepSix



Joined: 27 Mar 2005
Posts: 802
Location: DB22

PostPosted: Tue May 24, 2005 1:00 am    Post subject: Reply with quote

Hmmm. White should work ok, too. When I first made mine somebody else posted that their background was white and it worked just as well. And I think some of the built-in ones are on a different colored background. If you want, send it to me -- check your messages. Smile
Back to top
View user's profile Send private message
snake1969



Joined: 20 Apr 2005
Posts: 4

PostPosted: Tue May 24, 2005 1:21 pm    Post subject: Reply with quote

The fact you are having the same issue with original emblem images indicates something different than the way you are creating your image. Most likely the problem is caused by one of the mods you have installed. This is the first program I've seen that specifies color values in a text file (menu_1024_768.ini) and that being done, it is most likely the same is occuring in one or more hex files (I don't read hex).
Recommend when you get a chance, start a new career with a mod free version of SHIII and see if that helps.
It's only eye candy, but still very annoying, Smooth sailing and good luck.
Back to top
View user's profile Send private message
panthercules



Joined: 30 Apr 2005
Posts: 444

PostPosted: Tue May 24, 2005 5:22 pm    Post subject: Reply with quote

DeepSix wrote:
Hmmm. White should work ok, too. When I first made mine somebody else posted that their background was white and it worked just as well. And I think some of the built-in ones are on a different colored background. If you want, send it to me -- check your messages. Smile


Thanks - it's on its way
Back to top
View user's profile Send private message
panthercules



Joined: 30 Apr 2005
Posts: 444

PostPosted: Tue May 24, 2005 5:27 pm    Post subject: Reply with quote

snake1969 wrote:
The fact you are having the same issue with original emblem images indicates something different than the way you are creating your image. Most likely the problem is caused by one of the mods you have installed. This is the first program I've seen that specifies color values in a text file (menu_1024_768.ini) and that being done, it is most likely the same is occuring in one or more hex files (I don't read hex).
Recommend when you get a chance, start a new career with a mod free version of SHIII and see if that helps.
It's only eye candy, but still very annoying, Smooth sailing and good luck.


Yeah - I think when I get back to port after this patrol I'll be reverting to a clean install before patching up to 1.3/Real1.30, so maybe I can try it then and see if the emblems are working on a fresh install - I know at least one of the mods I'm using does mess with that particular file (menu_1024_768.ini) so if that's where the emblem/color aspects are too it could well be the culprit - maybe I can do a compare of the stock version of that file with my current modded one and see if I can spot what's different - do you know offhand where in that file the emblem-related stuff might be?
Back to top
View user's profile Send private message
panthercules



Joined: 30 Apr 2005
Posts: 444

PostPosted: Wed May 25, 2005 7:29 pm    Post subject: Reply with quote

Well, looks like we went through a bunch of trouble for nothing - looks like it must have been some problem caused by Real 1.22 or one of the other mods I was using. I finally managed to get back to port and get back to a fresh 1.2 install - now my emblem file works just fine (transparent background and all) - see below:



http://www.imagehosting.us/imagehosting/showimg.jpg/?id=481813

Guess I'll have to do some tests while patching up to 1.3/Real 1.30 and beyond and see what mod seems to have caused this

Thanks for trying to help out - at least now I know how to work with layers a little

Happy Hunting!
Back to top
View user's profile Send private message
DeepSix



Joined: 27 Mar 2005
Posts: 802
Location: DB22

PostPosted: Wed May 25, 2005 8:11 pm    Post subject: Reply with quote

Glad it works! Thumbs Up
Back to top
View user's profile Send private message
snake1969



Joined: 20 Apr 2005
Posts: 4

PostPosted: Thu May 26, 2005 5:53 pm    Post subject: Reply with quote

Happy to hear your good news. Sorry I didn"t reply sooner, but have been away for the past couple of days.

Smooth Sailing
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 -> Silent Hunter III All times are GMT - 5 Hours
Goto page Previous  1, 2
Page 2 of 2

 
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