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 10-04-05, 07:05 PM   #1
Flakwalker
Electrician's Mate
 
Join Date: Aug 2005
Posts: 131
Downloads: 0
Uploads: 0
Default No alpha on flags

I tried to add an alpha channel to flags, with the intention to check if posible add the Sweden, Norway and Finland navy flags, aswell to make them a little more transparent as real flags are.

But not posible
Flakwalker is offline   Reply With Quote
Old 10-04-05, 08:59 PM   #2
Sansal
Electrician's Mate
 
Join Date: May 2005
Location: Spain
Posts: 133
Downloads: 0
Uploads: 0
Default

There are a posibility to modify the transparency of the texture of a object. The valours are in the chunck type 2 before the chunk of the texture, i thinks that its posible to make this with a flag....

Sansal is offline   Reply With Quote
Old 10-04-05, 10:19 PM   #3
Cdre Gibs
Stowaway
 
Posts: n/a
Downloads:
Uploads:
Default

If an Alpha channel is used on a flag, the flag in game shows up as a black flag. The Flag mod thats around has Alpha channel's on about 70% of its flags. I had to remove the Alpha channel for them to show correctly.
  Reply With Quote
Old 10-05-05, 01:18 PM   #4
Flakwalker
Electrician's Mate
 
Join Date: Aug 2005
Posts: 131
Downloads: 0
Uploads: 0
Default

Hmm, then is posible to do something like this:



(Image from http://www.warship.get.net.pl )

For this a black&white alpha is enough, but for transparences a grayscale one will be needed.
Yes Gibs it make a black area where the alpha is painted.
Sansal that can be very interesting, it can be used to make glass :hmm:
Flakwalker is offline   Reply With Quote
Old 10-08-05, 07:46 AM   #5
Sansal
Electrician's Mate
 
Join Date: May 2005
Location: Spain
Posts: 133
Downloads: 0
Uploads: 0
Default

You can work with the 3d model of the flag. They are in data/library/flag.dat and flagS.dat. I can export the .obj with Pack3D, remake it and import it.



Cheers ,
Sansal is offline   Reply With Quote
Old 10-08-05, 04:57 PM   #6
Flakwalker
Electrician's Mate
 
Join Date: Aug 2005
Posts: 131
Downloads: 0
Uploads: 0
Default

Ok I will try that.
Flakwalker is offline   Reply With Quote
Old 10-08-05, 05:28 PM   #7
Rubini
Ocean Warrior
 
Join Date: May 2005
Location: São Paulo Brazil
Posts: 2,728
Downloads: 132
Uploads: 0
Default

Hey guys,

It's not possible to destroy the flags when the ship sink? Or this issue is in the zones.cfg file?

Rubini.
Rubini is offline   Reply With Quote
Old 10-09-05, 03:02 PM   #8
Flakwalker
Electrician's Mate
 
Join Date: Aug 2005
Posts: 131
Downloads: 0
Uploads: 0
Default

Sansal, I was studing on them but is quite confusing, each nation folder have several flags wich repeat each other, and there are two dat files, flag.dat and flags.dat, whats the difference?.

Also, how transparence can be applied to the flags?
Flakwalker is offline   Reply With Quote
Old 10-09-05, 03:12 PM   #9
Rubini
Ocean Warrior
 
Join Date: May 2005
Location: São Paulo Brazil
Posts: 2,728
Downloads: 132
Uploads: 0
Default

FlagS.dat: small ships
Flag.dat: all others ships.

Rubini
Rubini is offline   Reply With Quote
Old 10-09-05, 03:20 PM   #10
Flakwalker
Electrician's Mate
 
Join Date: Aug 2005
Posts: 131
Downloads: 0
Uploads: 0
Default

Quote:
Originally Posted by Rubini
FlagS.dat: small ships
Flag.dat: all others ships.

Rubini
Ahh
Flakwalker is offline   Reply With Quote
Old 10-09-05, 06:02 PM   #11
Sansal
Electrician's Mate
 
Join Date: May 2005
Location: Spain
Posts: 133
Downloads: 0
Uploads: 0
Default

For your Norwergian flag



It's a little complex, i think. You need to do two things.

1.- Insert a new 3d flag with the name of Norwe_FLG:
  • Wiht a hexeditor copy all this chunlks that is the Japan_FLG in flag.dat:

    ==================
    Obj:232
    Type: 1/101
    id: 40CC4B8EFE816E9C Label: Japan_FLG
    size: 2389 Position:630089
    ==================
    Obj:233
    Type: 10/5
    id: 40CC4B8EFF816E9C Label:
    size: 17 Position:632490
    Parent id: 40CC4B8EFE816E9CData: [B@12462b3
    ==================
    Obj:234
    Type: 6/0
    id: 40CC4B8EFF816E9C Label:
    size: 10878 Position:632519
    ==================
    Obj:235
    Type: 2/0
    id: 6C094C8EF3816E9C Label: Japan.tga
    size: 46 Position:643409

    Ka: 0.0 0.0 0.0
    Kd: 0.3 0.3 0.3
    Ks: 0.1 0.1 0.1
    Ns: 0
    ==================
    Obj:236
    Type: 3/0
    id: 0 Label: Japan.tga
    size: 24620 Position:643467
    ==================
    Obj:237
    Type: 8/0
    id: 6C094C8EF3816E9C Label: Japan_big
    size: 18 Position:668099
    ==================
    Obj:238
    Type: 4/100
    id: B8590E14F13C3CB5 Label: Japan_FLG
    size: 66 Position:668129
    ==================
    Obj:239
    Type: 8/0
    id: B8590E14F13C3CB5 Label: Japan_FLG
    size: 18 Position:668207

    Reinsert just before of the chunk

    ==================
    Obj:245
    Type: 0/1
    id: 0 Label:
    size: 0 Position:684894
    ==================

    And change the id's and the labels that you see in this new chunks and prove it rechargin the new flag.dat in Pack3D. When works for Pack3D then you prove in the game. Do you know how do a new country? in this case a country/roster named Norwe (Sorry when this works i can say you how enlarge the label)

2.- Change the rectangle for the Norwe_FLG 3D :
  • Like any other object and reinsert the object and the texture of the flag.

I can't do all this job for you because i have problems with my XP SP2. A Trojan take my pc three days ago and all is a problem with my pc. But i think that is a excelent exercice for you . May be Sergbuto can say anything about this, he maked the nationality mod.

Cheers

P.S. The byte that change the transperency of a object is just before of the id of the chunk type 2. Ever is FF (255 in decimal), for the crystal texture of my example i use the 65 valour.
Sansal is offline   Reply With Quote
Old 10-09-05, 07:10 PM   #12
Flakwalker
Electrician's Mate
 
Join Date: Aug 2005
Posts: 131
Downloads: 0
Uploads: 0
Default

Well, first I have to get an hex editor, and try to apply your tips.
Flakwalker is offline   Reply With Quote
Old 10-10-05, 02:20 PM   #13
Flakwalker
Electrician's Mate
 
Join Date: Aug 2005
Posts: 131
Downloads: 0
Uploads: 0
Default

What about add a navy flag to Norway?, it will have 2, the current one for civil and the new one for navy.

I can do the same with Sweden and Finland (when available)
Flakwalker is offline   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 09:28 AM.


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.