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

some model blp have alpha,but use this is no alpha! #2

Open
qq1053831109 opened this issue Mar 8, 2020 · 1 comment
Open

some model blp have alpha,but use this is no alpha! #2

qq1053831109 opened this issue Mar 8, 2020 · 1 comment

Comments

@qq1053831109
Copy link

some model blp have alpha,but use this is no alpha!
so how i get the alpha?

@DrSuperGood
Copy link
Owner

I think I know the specific example you are referring to. It is a Blizzard bug as they incorrectly formatted a texture containing alpha as a texture without alpha. It still worked in game due to a Warcraft III engine bug causing model textures to always be treated as having alpha even if the source texture declared that it did not have alpha. This could be seen by using the texture as an ability button icon where it would appear correctly opaque due to being declared as not having any alpha but still be transparent when viewed on the menu model.

The way the IIO API works is not very friendly towards supporting odd behaviours like this. If I ever write a more direct image data decode path I will build in a path allowing the application to access this potentially incorrectly masked data.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants