So this is how the Famous Animated Shirt was made
Yes, I've noticed this happens with certain textures, especially UI images. Easiest way to fix that is to use Yepoleb's SR Textool to set the BM_F_LINEAR_COLOR_SPACE flag to true on images that come out too dark. EDIT: It's a good practise to do this with normal maps as well.The imported texture will be dimmed in the game
Hi,Yes, I've noticed this happens with certain textures, especially UI images. Easiest way to fix that is to use Yepoleb's SR Textool to set the BM_F_LINEAR_COLOR_SPACE flag to true on images that come out too dark. EDIT: It's a good practise to do this with normal maps as well.
Try this command:Hi,
I have this dark ui icons.Could you please tell me how to set the BM_F* flag with srtextool?
I have no idea about the syntax.Thanks in advance.
srtextool m your_peg_file.cpeg_pc your_texture.tga -f 0x201
Thank you.I will leave out the .dds extension then.What is the 0x201 hex for?Try this command:
It should set both the BM_F_LINEAR_COLOR_SPACE flag and the BM_F_ALPHA flag, which is the combination I'd recommend for UI icons. Note that, even though you probably packed your texture as "your_texture.tga.dds", you need to leave out the ".dds" extension in the texture name.Code:srtextool m your_peg_file.cpeg_pc your_texture.tga -f 0x201
ox201 is the hex code for the binary number 1000000001, which you get by adding up the BM_F_LINEAR_COLOR_SPACE flag (1<<9, which equals 1000000000) and the BM_F_ALPHA flag (1<<0, otherwise written as 1).Thank you.I will leave out the .dds extension then.What is the 0x201 hex for?
Ah,now it makes sense what i read in the peg file header,thank's.ox201 is the hex code for the binary number 1000000001, which you get by adding up the BM_F_LINEAR_COLOR_SPACE flag (1<<9, which equals 1000000000) and the BM_F_ALPHA flag (1<<0, otherwise written as 1).
For some reason the game doesn't use the same bitmaps for HUD weapon icons and icons shown in stores. I'm unsure why this is, because the contents of both bitmaps seem to be identical in all cases, but for each weapon you have to include two icon textures: one called "weapon_icon_name.tga" and a duplicate called "weapon_icon_name_c.tga". The one with the "_c" suffix will be shown in stores.Hi Flow,
I have a problem with animated icons.In the main weapon menu the icons are showing up fine but in the second menue of the weapon itself
it shows only a white square.Only the RPG and the Gang SMG are displayed normal in the secondary menu.Can you help me out with that issue?
Thanks in advance.