Discussion in 'Tool Releases' started by flow754, May 3, 2015.
So this is how the Famous Animated Shirt was made
The imported texture will be dimmed in the game
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.
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.
Try this command:
srtextool m your_peg_file.cpeg_pc your_texture.tga -f 0x201
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 field of the command.
Thank you.I will leave out the .dds extension then.What is the 0x201 hex for?
Works pretty cool.Thank's for help and the pegAssembler + WeaponClone tool.
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).
Ah,now it makes sense what i read in the peg file header,thank's.
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.
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.
Separate names with a comma.