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

Blend shape index out of range #38

Closed
jerryzmtz opened this issue Jun 3, 2023 · 5 comments
Closed

Blend shape index out of range #38

jerryzmtz opened this issue Jun 3, 2023 · 5 comments

Comments

@jerryzmtz
Copy link

My optimization failed because of the following problem:

ArgumentException: Blend shape index out of range.
d4rkAvatarOptimizer.CombineSkinnedMeshes () (at Packages/d4rkpl4y3r.d4rkavataroptimizer/Editor/d4rkAvatarOptimizer.cs:2765)
d4rkAvatarOptimizer.Optimize () (at Packages/d4rkpl4y3r.d4rkavataroptimizer/Editor/d4rkAvatarOptimizer.cs:95)
d4rkAvatarOptimizerEditor.OnInspectorGUI () (at Packages/d4rkpl4y3r.d4rkavataroptimizer/Editor/d4rkAvatarOptimizerEditor.cs:959)
UnityEditor.UIElements.InspectorElement+<>c__DisplayClass58_0.<CreateIMGUIInspectorFromEditor>b__0 () (at <a259d3c004024353a2c217da97495055>:0)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)

This could be fixed when I exclude the problematic skinned mesh, named body. It includes 286 Blend Shapes, is this a problem?

@d4rkc0d3r
Copy link
Owner

Can you try to update to v2.2.0? The crash report line number doesn't do anything with blend shapes in the latest version so I don't know where it is actually crashing.
If it still crashes with the newest version you could try sending me the problematic mesh file so I can have a look at it.

@teehzero
Copy link

teehzero commented Jun 6, 2023

Same issue here

@teehzero
Copy link

teehzero commented Jun 6, 2023

Was able to fix by setting FBX rig to 'None' and then 'Humanoid'. I can no longer reproduce the issue.

@teehzero
Copy link

teehzero commented Jun 6, 2023

https://i.imgur.com/QKV0FFl.png
If any of the viseme blendshapes are set to -none- the optimize fails.

@d4rkc0d3r
Copy link
Owner

Ah very nice, I can reproduce it with that on my end!

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

3 participants