SamsterBirdies / Birdies-Guns

Forts workshop mod with lots of guns
0 stars 0 forks source link

Convert textures to DDS #7

Open SamsterBirdies opened 3 hours ago

SamsterBirdies commented 3 hours ago

been having trouble doing this in batch. dds commit 1: https://github.com/SamsterBirdies/Birdies-Guns/commit/d6aae9ef125ac30dcbd6bef5f62794e558cf210d converted effects and weapons to dds dds commit 2: https://github.com/SamsterBirdies/Birdies-Guns/commit/bfcb85ebb281fe89702d9a71031b2d8512ec7655 converted ui to dds.

My batch tool for converting dds does not properly generate mipmaps (it generates them, but poorly). os.system(f"texconv -f BC7_UNORM -if LINEAR -o {output_path} {input_path}/{file} -y")

Reverted both dds commits.

dds should be done with BC7 LINEAR. Effects and weapon files should support proper mipmaps (bilinear, bicubic, or better). UI should not have mipmaps as they are not needed there.

SamsterBirdies commented 2 hours ago

Another issue is that the PNG files must first be what i would call "pre-converted". Ive done it by loading the images in PIL and then resaving the PNG. (some PNGS in this mod have 8-bit quantization, while others are normal 32bit, and this confuses texconv)