Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help  Need help constraining the cape to a location
#4
(16-02-2020, 04:31 AM)invayne Wrote: okay, so I figured it out it was due to not having any back faces on the cloth. But once I reimported my mesh with a double facing mesh. I got 
Code:
ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index
System.ThrowHelper.ThrowArgumentOutOfRangeException (System.ExceptionArgument argument, System.ExceptionResource resource) (at <437ba245d8404784b9fbab9b439ac908>:0)
System.ThrowHelper.ThrowArgumentOutOfRangeException () (at <437ba245d8404784b9fbab9b439ac908>:0)
System.Collections.Generic.List`1[T].get_Item (System.Int32 index) (at <437ba245d8404784b9fbab9b439ac908>:0)
Obi.HalfEdgeMesh.CalculateRestOrientations () (at Assets/Obi/Scripts/Cloth/DataStructures/HalfEdgeMesh.cs:282)
Obi.HalfEdgeMesh.Generate () (at Assets/Obi/Scripts/Cloth/DataStructures/HalfEdgeMesh.cs:248)
Obi.ObiSkinnedClothBlueprint+<Initialize>d__2.MoveNext () (at Assets/Obi/Scripts/Cloth/Blueprints/ObiSkinnedClothBlueprint.cs:31)
Obi.ObiActorBlueprint+<Generate>d__68.MoveNext () (at Assets/Obi/Scripts/Common/Blueprints/ObiActorBlueprint.cs:300)
Obi.CoroutineJob+<Start>d__15.MoveNext () (at Assets/Obi/Scripts/Common/Utils/Coroutines/CoroutineJob.cs:99)
UnityEngine.Debug:LogException(Exception)
Obi.<Start>d__15:MoveNext() (at Assets/Obi/Scripts/Common/Utils/Coroutines/CoroutineJob.cs:108)
Obi.EditorCoroutine:ShowCoroutineProgressBar(String, IEnumerator&) (at Assets/Obi/Scripts/Common/Utils/Coroutines/EditorCoroutine.cs:21)
Obi.ObiActorBlueprintEditor:Generate() (at Assets/Obi/Editor/Common/Blueprints/ObiActorBlueprintEditor.cs:100)
Obi.ObiActorBlueprintEditor:OnInspectorGUI() (at Assets/Obi/Editor/Common/Blueprints/ObiActorBlueprintEditor.cs:128)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)

Now I have reimported Obi cloth and also deleted everything for my character including scripts, mesh, and whatnot and also reimported that and then readded all the scripts recreated blueprint I get this error now.
how do I fix this?

so after removing the doubled sided mesh it started working again -_-

Double sided meshes are non-manidold (every face is non-manifold in fact, so that's as non-manifold as you can get a mesh to be). Obi doesn't support non-manifold meshes, as explained in the manual:
http://obi.virtualmethodstudio.com/tutor...setup.html

Two-sided cloth is generally easier, better and much more efficiently done using a shader.
Reply


Messages In This Thread
RE: Need help constraining the cape to a location - by josemendez - 16-02-2020, 08:28 PM