| View previous topic :: View next topic |
| Author |
Message |
Flakwalker
Joined: 07 Aug 2005 Posts: 129
|
Posted: Tue Oct 04, 2005 7:05 pm Post subject: 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 :shifty: |
|
| Back to top |
|
 |
Sansal
Joined: 15 May 2005 Posts: 150 Location: Spain
|
Posted: Tue Oct 04, 2005 8:59 pm Post subject: |
|
|
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....
 |
|
| Back to top |
|
 |
Cdre Gibs
Joined: 27 Apr 2005 Posts: 742
|
Posted: Tue Oct 04, 2005 10:19 pm Post subject: |
|
|
| 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. |
|
| Back to top |
|
 |
Flakwalker
Joined: 07 Aug 2005 Posts: 129
|
Posted: Wed Oct 05, 2005 1:18 pm Post subject: |
|
|
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: |
|
| Back to top |
|
 |
Sansal
Joined: 15 May 2005 Posts: 150 Location: Spain
|
Posted: Sat Oct 08, 2005 7:46 am Post subject: |
|
|
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 , |
|
| Back to top |
|
 |
Flakwalker
Joined: 07 Aug 2005 Posts: 129
|
Posted: Sat Oct 08, 2005 4:57 pm Post subject: |
|
|
| Ok I will try that. |
|
| Back to top |
|
 |
Rubini
Joined: 13 May 2005 Posts: 1149 Location: São Paulo Brazil
|
Posted: Sat Oct 08, 2005 5:28 pm Post subject: |
|
|
Hey guys,
It's not possible to destroy the flags when the ship sink? Or this issue is in the zones.cfg file?
Rubini. |
|
| Back to top |
|
 |
Flakwalker
Joined: 07 Aug 2005 Posts: 129
|
Posted: Sun Oct 09, 2005 3:02 pm Post subject: |
|
|
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? |
|
| Back to top |
|
 |
Rubini
Joined: 13 May 2005 Posts: 1149 Location: São Paulo Brazil
|
Posted: Sun Oct 09, 2005 3:12 pm Post subject: |
|
|
FlagS.dat: small ships
Flag.dat: all others ships.
Rubini |
|
| Back to top |
|
 |
Flakwalker
Joined: 07 Aug 2005 Posts: 129
|
Posted: Sun Oct 09, 2005 3:20 pm Post subject: |
|
|
| Rubini wrote: | FlagS.dat: small ships
Flag.dat: all others ships.
Rubini |
Ahh  |
|
| Back to top |
|
 |
Sansal
Joined: 15 May 2005 Posts: 150 Location: Spain
|
Posted: Sun Oct 09, 2005 6:02 pm Post subject: |
|
|
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 :know: . 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. |
|
| Back to top |
|
 |
Flakwalker
Joined: 07 Aug 2005 Posts: 129
|
Posted: Sun Oct 09, 2005 7:10 pm Post subject: |
|
|
| Well, first I have to get an hex editor, and try to apply your tips. |
|
| Back to top |
|
 |
Flakwalker
Joined: 07 Aug 2005 Posts: 129
|
Posted: Mon Oct 10, 2005 2:20 pm Post subject: |
|
|
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) |
|
| Back to top |
|
 |
|