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

Converting a previously modded skn into gtfl returns an error. #39

Open
TwirlingWitch opened this issue Nov 29, 2023 · 1 comment
Open
Assignees
Labels
bug Something isn't working

Comments

@TwirlingWitch
Copy link

I'm trying to edit an already modded file, but whenever I try to convert it, it returns with the following error:

Error: System.NotFiniteNumberException: value at SharpGLTF.Memory.FloatingAccessor.set_Item(Int32 rowIndex, Int32 subIndex, Single value) at LeagueToolkit.IO.Extensions.Utils.GltfUtils.SanitizeVertexNormalMemoryAccessor(MemoryAccessor[] memoryAccessors) at LeagueToolkit.IO.SimpleSkinFile.SimpleSkinGltfExtensions.CreateGltfMesh(ModelRoot root, SkinnedMesh skinnedMesh, Byte[] influenceLookup, IReadOnlyDictionary2 materials) at LeagueToolkit.IO.SimpleSkinFile.SimpleSkinGltfExtensions.ToGltf(SkinnedMesh skinnedMesh, IEnumerable1 textures) at lol2gltf.Pages.SkinnedMesh.ConvertToGltf(String gltfPath) in D:\a\lol2gltf\lol2gltf\lol2gltf\Pages\SkinnedMesh.razor:line 335 at lol2gltf.Pages.SkinnedMesh.Submit() in D:\a\lol2gltf\lol2gltf\lol2gltf\Pages\SkinnedMesh.razor:line 304

I can convert other skn files normally, so the program IS working.

@Crauzer
Copy link
Owner

Crauzer commented Dec 1, 2024

Hmm seems like there is an issue with the way lol2gltf handles normals.

@Crauzer Crauzer added the bug Something isn't working label Dec 1, 2024
@Crauzer Crauzer self-assigned this Dec 1, 2024
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