-
Notifications
You must be signed in to change notification settings - Fork 171
N3TexViewer GTT Files #473
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
base: master
Are you sure you want to change the base?
Conversation
This atleast displays the first index of GTT textures.
|
I feel like it's a bit misleading for it to be able to load the file, then only load the first of the 8 textures contained within. Likewise when it goes to save. Perhaps the extension check can be moved back up into N3TexViewer, so it can treat them specially, be it by staging them all into the resulting texture or having an option to flip through them. CN3Texture::LoadFromFile() is just useless for loading more than 1, so there's really no point in doing it there. |
|
Was thinking about it myself. But the n3tool def didnt even kick in and since I had needed it thouvht I would just do it like this. |
|
Most likely you were doing it in the context of the base N3Base project. It wouldn't see _N3TOOL there, only from the N3Base_tool wrapper project. It should behave, even though it doesn't show it. |
I see. |
|
@UTengine Necessary changes should also be made in these parts for the GTT format. Additionally, a review is required because texture files cannot be rendered in the alpha version, so it is worth examining the reason. KnightOnline/Client/N3Base/N3Texture.cpp Line 593 in f1dc1f6
KnightOnline/N3TexViewer/N3TexViewerDoc.cpp Line 151 in f1dc1f6
|
This atleast displays the first index of GTT textures.
Pull request type
N3Texviewer it doesn't seem to recognize #ifdef _N3TOOL but I just went with the flow
and edited where it would stall.
Please check the type of change your PR introduces:
What is the current behaviour?
Doesn't open GTT file's because it checks for the extension
What is the new behaviour?
Checks both extensions and displays them in the file dialog
Not sure if I should use a second & reference when checking for the extension type.
Why and how did I change this?
Pretty obvious 2 line's of code.
Demo
Checklist