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

[Bug] Mipmap LODs not working correctly in viewer #49

Open
Deschamps12 opened this issue Aug 2, 2024 · 2 comments
Open

[Bug] Mipmap LODs not working correctly in viewer #49

Deschamps12 opened this issue Aug 2, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@Deschamps12
Copy link

Describe the bug
When trying to export models in any format, it gives missing method error. Also upon importing .BMD the model is black now, previous versions would load materials properly.

System.MissingMethodException: Attempted to access a missing method.
at fin.model.io.exporters.assimp.indirect.AssimpIndirectModelExporter.ExportFormats(IModelExporterParams modelExporterParams, IReadOnlyList1 exportedFormats, Boolean exportAllTextures) at uni.games.ExporterUtil.Export[T](T threeDFileBundle, Func1 loaderHandler, ISystemDirectory outputDirectory, IReadOnlyList`1 formats, Boolean overwriteExistingFile, String overrideName) in C:\Users\Ryan\Documents\CSharpWorkspace\FinModelUtility\FinModelUtility\UniversalAssetTool\UniversalAssetTool\src\games\ExporterUtil.cs:line 268

On Import
image

Exporting
image

@Deschamps12 Deschamps12 added the bug Something isn't working label Aug 2, 2024
@MeltyPlayer
Copy link
Owner

Thanks for reporting this issue, sorry about that! Exporting is fixed now, though the material issue probably isn't.

Is this model from Twilight Princess?

@MeltyPlayer MeltyPlayer changed the title [Bug] Unable to export models on new version [Bug] Mipmap LODs not working correctly in viewer Aug 11, 2024
@MeltyPlayer
Copy link
Owner

After more investigation, I've figured out that this problem has to do with how mipmaps are rendered in the viewer. It turns out that the first mipmaps for this character are the expected texture, but the second mipmaps are black (which I'm assuming is expected behavior?). It's always rendering with these second mipmaps for some reason, which is why the character always appears all-black.

So this is just a viewer issue, the characters should still export correctly. I just need to fix how the renderer uses mipmaps, so it switches between textures at the correct distance.

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