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

fbxからExportするときにReduce Blendshape sizeをチェックするとvrmファイルが生成されない #349

Closed
shiena opened this issue Dec 18, 2019 · 3 comments
Labels
bug Something isn't working
Milestone

Comments

@shiena
Copy link

shiena commented Dec 18, 2019

バグについて

fbxからExportするときにReduce Blendshape sizeをチェックするとvrmファイルが生成されない。

再現方法

  1. Kyleをインポートする
  2. Kyleのアニメーションタイプをヒューマノイドに変更する
  3. Robot Kyle.fbxをヒエラルキーに追加して選択する
  4. メニューのVRM > UniVRM-0.54.0 > Export humanoidを選択する
  5. Authorに適当に入力する
  6. Reduce Blendshape sizeをチェックする
  7. Exportボタンを押す

エラーログ

NullReferenceException: Object reference not set to an instance of an object
VRM.VRMExportSettings.Export (System.String path, System.Collections.Generic.List`1[T] destroy) (at Assets/VRM/UniVRM/Scripts/Format/VRMExportSettings.cs:299)
VRM.VRMExportSettings.Export (System.String path) (at Assets/VRM/UniVRM/Scripts/Format/VRMExportSettings.cs:258)
VRM.VRMExporterWizard.OnWizardCreate () (at Assets/VRM/UniVRM/Editor/Format/VRMExporterMenu.cs:42)
System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at <437ba245d8404784b9fbab9b439ac908>:0)
Rethrow as TargetInvocationException: Exception has been thrown by the target of an invocation.
System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at <437ba245d8404784b9fbab9b439ac908>:0)
System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) (at <437ba245d8404784b9fbab9b439ac908>:0)
UnityEditor.ScriptableWizard.OnGUI () (at <83a73882c51c4602b3d34743827d03e7>:0)
System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at <437ba245d8404784b9fbab9b439ac908>:0)
Rethrow as TargetInvocationException: Exception has been thrown by the target of an invocation.
System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at <437ba245d8404784b9fbab9b439ac908>:0)
System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) (at <437ba245d8404784b9fbab9b439ac908>:0)
UnityEditor.HostView.Invoke (System.String methodName, System.Object obj) (at <83a73882c51c4602b3d34743827d03e7>:0)
UnityEditor.HostView.Invoke (System.String methodName) (at <83a73882c51c4602b3d34743827d03e7>:0)
UnityEditor.HostView.OldOnGUI () (at <83a73882c51c4602b3d34743827d03e7>:0)
UnityEngine.UIElements.IMGUIContainer.DoOnGUI (UnityEngine.Event evt, UnityEngine.Matrix4x4 parentTransform, UnityEngine.Rect clippingRect, System.Boolean isComputingLayout, UnityEngine.Rect layoutSize, System.Boolean canAffectFocus) (at <a24e7ce9cb384beb988b124973437b7f>:0)
UnityEngine.UIElements.IMGUIContainer.HandleIMGUIEvent (UnityEngine.Event e, UnityEngine.Matrix4x4 worldTransform, UnityEngine.Rect clippingRect, System.Boolean canAffectFocus) (at <a24e7ce9cb384beb988b124973437b7f>:0)
UnityEngine.UIElements.IMGUIContainer.HandleIMGUIEvent (UnityEngine.Event e, System.Boolean canAffectFocus) (at <a24e7ce9cb384beb988b124973437b7f>:0)
UnityEngine.UIElements.IMGUIContainer.SendEventToIMGUI (UnityEngine.UIElements.EventBase evt, System.Boolean canAffectFocus) (at <a24e7ce9cb384beb988b124973437b7f>:0)
UnityEngine.UIElements.IMGUIContainer.HandleEvent (UnityEngine.UIElements.EventBase evt) (at <a24e7ce9cb384beb988b124973437b7f>:0)
UnityEngine.UIElements.CallbackEventHandler.HandleEventAtTargetPhase (UnityEngine.UIElements.EventBase evt) (at <a24e7ce9cb384beb988b124973437b7f>:0)
UnityEngine.UIElements.MouseCaptureDispatchingStrategy.DispatchEvent (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.IPanel panel) (at <a24e7ce9cb384beb988b124973437b7f>:0)
UnityEngine.UIElements.EventDispatcher.ProcessEvent (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.IPanel panel) (at <a24e7ce9cb384beb988b124973437b7f>:0)
UnityEngine.UIElements.EventDispatcher.ProcessEventQueue () (at <a24e7ce9cb384beb988b124973437b7f>:0)
UnityEngine.UIElements.EventDispatcher.OpenGate () (at <a24e7ce9cb384beb988b124973437b7f>:0)
UnityEngine.UIElements.EventDispatcherGate.Dispose () (at <a24e7ce9cb384beb988b124973437b7f>:0)
UnityEngine.UIElements.EventDispatcher.ProcessEvent (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.IPanel panel) (at <a24e7ce9cb384beb988b124973437b7f>:0)
UnityEngine.UIElements.EventDispatcher.Dispatch (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.IPanel panel, UnityEngine.UIElements.DispatchMode dispatchMode) (at <a24e7ce9cb384beb988b124973437b7f>:0)
UnityEngine.UIElements.BaseVisualElementPanel.SendEvent (UnityEngine.UIElements.EventBase e, UnityEngine.UIElements.DispatchMode dispatchMode) (at <a24e7ce9cb384beb988b124973437b7f>:0)
UnityEngine.UIElements.UIElementsUtility.DoDispatch (UnityEngine.UIElements.BaseVisualElementPanel panel) (at <a24e7ce9cb384beb988b124973437b7f>:0)
UnityEngine.UIElements.UIElementsUtility.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr) (at <a24e7ce9cb384beb988b124973437b7f>:0)
UnityEngine.GUIUtility.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr) (at <59837000ebf54955a9cb1d31caa86097>:0)

期待する動作

VRMBlendShapeProxyがなくてもVRMファイルが生成されること

スクリーンショット

image

環境情報

  • OS: Windows 10
  • UniVRM version: 0.54.0
  • Unity2019.3.0f3

追加の状況・背景

特になし

@hiroj
Copy link
Contributor

hiroj commented Dec 19, 2019

Reduce Blendshape sizeオプションは、VRMに変換した後のBlendShapeClipを参照するため初回のfbx>VRMの変換でエラーになっていました。
そのためお手数ですが一度VRMに変換してからReduce Blendshape sizeオプションを利用して頂きますようお願いいたします。
エラーが出る件に関しては、fbx>VRMの変換時にはReduce Blendshape sizeオプションを選択出来ないようにするか、事前に警告を出すように次回の更新で修正致します。

@hiroj
Copy link
Contributor

hiroj commented Dec 26, 2019

https://github.com/vrm-c/UniVRM/releases/tag/v0.55.0
Reduce Blendshape sizeオプション選択時にVRMBlendShapeProxyが無い場合は警告を出してExport出来ないように修正が入りました。

@shiena
Copy link
Author

shiena commented Dec 26, 2019

fbxやVRMBlendShapeProxyがないプレハブを選択してReduce Blendshape sizeをチェックするとVRM Exporterダイアログにエラーメッセージが表示されExportボタンを押せなくなりました。ご対応ありがとうございました。

@shiena shiena closed this as completed Dec 26, 2019
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