Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Alpha channel not detected for some textures #157

Closed
vrad-exe opened this issue Jun 20, 2024 · 1 comment
Closed

Alpha channel not detected for some textures #157

vrad-exe opened this issue Jun 20, 2024 · 1 comment
Assignees
Labels
bug Something isn't working
Milestone

Comments

@vrad-exe
Copy link

vrad-exe commented Jun 20, 2024

Describe the Bug

Some textures appear to not have their alpha channel detected correctly, causing the checkbox to be unavailable when it should be. An example of this is tf2_textures.vpk/materials/overlays/no_entry.vtf from TF2. Extracting it from the VPK shows that it has an alpha channel, but this doesn't show up in VPKEdit.

To Reproduce

  1. Open the texture I referred to above
  2. Try to turn on alpha

Operating System

Tested on Windows 10

@vrad-exe vrad-exe added the bug Something isn't working label Jun 20, 2024
@craftablescience craftablescience added this to the 4.2 milestone Jun 20, 2024
@craftablescience
Copy link
Owner

I believe this is happening now because of the new vtf library basically saying if the format is compressed pretend it has no alpha channel, which is plain wrong for DXT5, DXT1+Alpha, BC7, ATI1N, ATI2N - honestly there's more compressed formats that support it than ones that don't

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants