View Full Version : No alpha on flags
Flakwalker
10-04-05, 07:05 PM
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:
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....
http://i3.photobucket.com/albums/y72/sansal/0a3a89d6.jpg
Cdre Gibs
10-04-05, 10:19 PM
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.
Flakwalker
10-05-05, 01:18 PM
Hmm, then is posible to do something like this:
http://www.warship.get.net.pl/_Auxiliary/Norway_flag2.gif
(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:
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.
http://i3.photobucket.com/albums/y72/sansal/9e11967e.jpg
Cheers ,
Flakwalker
10-08-05, 04:57 PM
Ok I will try that.
Hey guys,
It's not possible to destroy the flags when the ship sink? Or this issue is in the zones.cfg file?
Rubini.
Flakwalker
10-09-05, 03:02 PM
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?
FlagS.dat: small ships
Flag.dat: all others ships. ;)
Rubini
Flakwalker
10-09-05, 03:20 PM
FlagS.dat: small ships
Flag.dat: all others ships. ;)
Rubini
Ahh :up:
For your Norwergian flag
http://www.warship.get.net.pl/_Auxiliary/Norway_flag2.gif
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.
Flakwalker
10-09-05, 07:10 PM
Well, first I have to get an hex editor, and try to apply your tips.
Flakwalker
10-10-05, 02:20 PM
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)
vBulletin® v3.8.11, Copyright ©2000-2025, vBulletin Solutions Inc.