Skip to content

Add lenient model export mode #502

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

Closed
wants to merge 1 commit into from

Conversation

zeroeightysix
Copy link
Contributor

This is a bit of a band-aid fix, but this PR adds a "Lenient mode" checkbox to the model export menu.

In lenient mode,

  • Meshes with multiple indices for Color only produce a warning. The first usage is chosen.
    • This allows us to export Dawnblazer Jerkin (chara/equipment/e6201/model/c1101e6201_top.mdl) and other vanilla items.
  • SharpGLTF is instructed to fix errors, which mitigates problems with invalid tangents.

The second thing might actually be a sensible default, and for the first someone should just figure out why the game breaks this assumption of only having one Color attribute on vertices.

I've been using these changes for a while to mod and haven't had to touch my VM with TexTools installed on it, so honestly I'm quite happy with it :-)

@zeroeightysix
Copy link
Contributor Author

Oops. Just saw that another PR's taken care of invalid tangents.

@zeroeightysix
Copy link
Contributor Author

The color usage errors are really all I've encountered so I'll just figure those out instead of.. this.

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

Successfully merging this pull request may close these issues.

1 participant