Source-1-Games icon indicating copy to clipboard operation
Source-1-Games copied to clipboard

[MOST Source 1 Games on LINUX] DXT1 Alpha is broken and will be drawn with a Black Background.

Open munoida opened this issue 3 years ago • 0 comments

This mainly affects custom sprays in Team Fortress 2 and other Source 1 Games 20220813015828_1 (A custom spray with Tricky on it using the DXT5 Alpha and Normal compression) 20220813015945_1 (DXT1 wouldn't be set with Alpha in VTFEdit, so I used DXT1 with one-bit alpha, whilst a fully black spray doesn't happen all the time, it can like in the preview image. Transparency will NEVER work with DXT1 Alpha compression though, it'll have a black backdrop, same image file was used but with different VTF Compression)

I don't know if this happens in ALL source games but it's safe to say that it affects Team Fortress 2 (Orange Box Branch) Left 4 Dead 2 (Left 4 Dead 1 does not have a Linux Client) (Left 4 Dead Branch) Garry's Mod (Not Valve-owned, but can be worth mentioning) (Garry's Mod Branch) MAYBE Counter-Strike: Source (Can't test it out on my end, I forgot how to work sprays in that game LOL)

Whilst his happens to usually only sprays I have no doubt that this can also happen to models that have DXT1 Alpha Compressed textures.

SYSTEM Info OS: Fedora Linux 36 (Workstation Edition) KERNEL: 5.18.16-200.fc36.x86_64 CPU: Intel Core i7-3770S @ 3.10GHz GPU: NVIDIA GeForce GTX 1050 Ti GPU DRIVER: NVIDIA 515.65.01 RAM: 16 GB

munoida avatar Aug 13 '22 06:08 munoida