VRMConverterForVRChat
VRMConverterForVRChat copied to clipboard
Unity Editor: 2019.4.31f1 VRM Converter for VRChat: 38.2.1 UniVRM: 0.99.4 System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary. at System.Collections.Generic.Dictionary`2[TKey,TValue].get_Item (TKey key) [0x0001e] in :0 at VRM.VRMBoneNormalizer+c__DisplayClass2_0.b__1 (UnityEngine.Transform...
現在のなで肩補正はFBXのRig設定における肩のy座標を調整することで実装していますが、これに加えて「Muscles&Settings」の値も調整できるようにすることで、よりなで肩(いかり肩)の補正ができるようになる可能性があります。 具体的には下図の「min」「max」のzの値を調整することでVRMのまま調整できました。 
 Unity Editor: 2022.3.22f1 VRM Converter for VRChat: 41.1.0 UniVRM: 0.121.0 System.NullReferenceException: Object reference not set to an instance of an object at UniGLTF.MeshUtility.MeshAttachInfo+c__DisplayClass4_0.b__0 (UnityEngine.Transform x) [0x00000] in .\Library\PackageCache\[email protected]\Runtime\MeshUtility\MeshAttachInfo.cs:23 at...
Unity Editor: 2022.3.6f1 VRM Converter for VRChat: 41.1.0 UniVRM: 0.121.0 System.NullReferenceException: Object reference not set to an instance of an object at UniGLTF.MeshUtility.MeshAttachInfo+c__DisplayClass4_0.b__0 (UnityEngine.Transform x) [0x00000] in .\Packages\com.vrmc.gltf\Runtime\MeshUtility\MeshAttachInfo.cs:23 at (wrapper...
Unity Editor: 2022.3.6f1 VRM Converter for VRChat: 41.1.0 UniVRM: 0.121.0 System.NullReferenceException: Object reference not set to an instance of an object at Esperecyan.UniVRMExtensions.VRMInitializer.Initialize (System.String prefabPath, UnityEngine.GameObject prefabInstance) [0x0007e] in .\Packages\jp.pokemori.univrm-extensions\VRMInitializer.cs:39...
VRChat用アバターをVRMに変換する際に、標準のExpressions以外も設定できると嬉しいと感じこの機能を作成しました。 分からない部分はAIに聞きながらやってたのでガバガバだったら申し訳ありません。 個人的に欲しいという機能ではあるので、今後の開発において機能追加をご検討いただけますと幸いです。 - 変更内容 ExpressionPresetをクラスに変更 カスタムExpression作成用のメソッドを作成
下記入力にて、タイトルのエラーが起きました…  エラー内容: ``` System.ArgumentException: AddBlendShape() input arrays size must match mesh vertex count at (wrapper managed-to-native) UnityEngine.Mesh.AddBlendShapeFrame(UnityEngine.Mesh,string,single,UnityEngine.Vector3[],UnityEngine.Vector3[],UnityEngine.Vector3[]) at UniGLTF.MeshUtility.MeshIntegrator.AddBlendShapesToMesh (UnityEngine.Mesh mesh) [0x00016] in .\Packages\com.vrmc.gltf\Runtime\MeshUtility\MeshIntegrator.cs:66 at UniGLTF.MeshUtility.MeshIntegrator.Integrate (System.String name, UniGLTF.MeshUtility.MeshIntegrator+BlendShapeOperation...
#28 のissueについて修正のPRを作成しました。 こちらの問題の原因ですが、VRC Avatar DescriptorのEye Look→Eyelids→Blendshape StatesのBlinkが`-none-`になっている場合に 以下の`settings.eyelidsBlendshapes[0]`が-1になるためIndex out of rangeが発生していました。 https://github.com/esperecyan/VRMConverterForVRChat/blob/18915174c4d990c2b1774d16eb410163ab499cb1/Editor/Utilities/VRChatUtility.cs#L332 したがって、本修正ではこの値が設定されている場合に無視するようにしています。
VRoid Studioで出力したVRMモデルをVRChat用に変換するときに、まばたきが自動で設定されなくなりました。 環境は現時点の最新です。カッコ内にバージョン番号を明記します。 下記の手順を行い確認しました。 1. VRoid Studio(v.1.29.2)でサンプルモデルを無編集で、VRM0.0のフォーマットで出力 2. Unityで作業 ALCOM(v0.1.15)で環境最新状態。 Unity(2022.3.22f1) VRM Converter for VRChat(v.41.3.0) ProjectツリーにD&Dして、Duplicate and Convert VRChatを選択。 現在、これでEyelidsに何も設定されません。  以前は、同様の作業をした場合は下記動作にてまばたきが自動で設定されています。 ・EyelidsはBlendshapesが設定 ・Blinkにはeyes_closedブレンドシェイプが設定 (eyes_closedブレンドシェイプは新規追加されている。 現在の動作では、eyes_closedブレンドシェイプの新規追加が行われていない) ![スクリーンショット 2024-09-12...