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

Not work on Twilight Princess font #5

Open
CaiMiao opened this issue Aug 20, 2020 · 5 comments
Open

Not work on Twilight Princess font #5

CaiMiao opened this issue Aug 20, 2020 · 5 comments

Comments

@CaiMiao
Copy link

CaiMiao commented Aug 20, 2020

on exporting the program report as R8_UNORM type but it have transparency indeed, results imports no alpha channel and broken result

@CaiMiao CaiMiao changed the title Not work on Twilight Princess font import Not work on Twilight Princess font Aug 20, 2020
@aboood40091
Copy link
Owner

... send it... ?

@CaiMiao
Copy link
Author

CaiMiao commented Aug 21, 2020

sure.
reishotai_24_22.bfn.zip

@aboood40091
Copy link
Owner

Ah, I see the problem. I used to hardcode the component selectors back in the day for every format into specific values for each format (R, 1, 1, 1 for R8) instead of handling the true values.

In all honesty, the tool itself is pretty old and sometimes does some wrong assumptions (just like this one). I will hopefully make a rewrite soon enough, but in the meantime, you can use Switch Toolbox to extract the images in this file with the correct colors.

@CaiMiao
Copy link
Author

CaiMiao commented Aug 21, 2020

I see.
Can you implement a quick fix for this? (export / import w/ alpha channel support)
I need to build another font with different base bfn. It have around 100 sheets and different image size so I have to batch convert them.

@aboood40091
Copy link
Owner

aboood40091 commented Aug 27, 2020

I actually went ahead and started the rewrite of the tool.
You can find the progress here.

As of now, it can batch extract textures (including mipmaps) in GTX files to png files with correct color and all.
For example, here are the textures extracted from the GTX file you sent:
reishotai_24_22.bfn.zip

I am still working on the new DDS writer.

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