Hello.
So i've been doing some editing on a player character's textures, and until now it's been going just fine. I've edited png's extracted with pegtool, changed image format to 32 bit ARGB in peg_desc then repacked, and it worked for just about any texture out there - skin, hair, clothes, whatever. Not for eyebrows. For some reason, if i replace eyebrows texture, the game just won't load it. Neither diffuse map, nor normal, even if i haven't touched the latter. It does load them if i repack peg using DXT or R5G6B5 compression, but in this case there appears to be some problem with mip-maps and the texture ends up looking messed up anyway.
Then i noticed another strange thing. Any eyebrow texture i tried to extract was 128x64. And that sounded about right considering the size of .raw file and assuming it is compressed with DXT. Bun then i tried browsing through the loaded textures in-game using texmod, and any eyebrow texture i stumbled upon was 256x128. And i can tell that they were not just upscaled in some way either, but genuinely higher res. And i don't see how 15.9kb g_peg can contain two 256x128 DXT textures.
So now i'm totally lost. Either i'm trying to edit wrong packages, but then, why does it even makes any difference in-game, or they are right packages, but how come they contain lower-res version of a texture, and why can't i replace it like any other texture?
Any help would be appreciated.
So i've been doing some editing on a player character's textures, and until now it's been going just fine. I've edited png's extracted with pegtool, changed image format to 32 bit ARGB in peg_desc then repacked, and it worked for just about any texture out there - skin, hair, clothes, whatever. Not for eyebrows. For some reason, if i replace eyebrows texture, the game just won't load it. Neither diffuse map, nor normal, even if i haven't touched the latter. It does load them if i repack peg using DXT or R5G6B5 compression, but in this case there appears to be some problem with mip-maps and the texture ends up looking messed up anyway.
Then i noticed another strange thing. Any eyebrow texture i tried to extract was 128x64. And that sounded about right considering the size of .raw file and assuming it is compressed with DXT. Bun then i tried browsing through the loaded textures in-game using texmod, and any eyebrow texture i stumbled upon was 256x128. And i can tell that they were not just upscaled in some way either, but genuinely higher res. And i don't see how 15.9kb g_peg can contain two 256x128 DXT textures.
So now i'm totally lost. Either i'm trying to edit wrong packages, but then, why does it even makes any difference in-game, or they are right packages, but how come they contain lower-res version of a texture, and why can't i replace it like any other texture?
Any help would be appreciated.