Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Bug / Crash  Post Unity 2019.1 error
#21
(20-05-2019, 09:43 AM)josemendez Wrote: Hi there,

Make sure that you've regenerated the cloth topology, and reinitialized the cloth. This is only needed when opening the included sample scenes in >= 2019.1 though, as they were created in 2018.1. Not needed when creating your own cloth. Here's a video of me going over the process for a couple of the sample scenes:


Thanks, for the scenes you show in the video it also works for me. I cannot get the CharacterCloth scene to work, though (with the trenchcoat). The trenchcoat looks completely off.
Reply
#22
After making a whole new project just to make the skinned cloth work, everything appears to work properly except for the mesh being rendered 90 degrees sideways for some reason. This happens to any skinned mesh even on Edit Particle mode. Nothing seems to fix this.

I should add that everything seems to work just fine with non-skinned meshes, even just switching a skinned mesh to be rendered with a regular Mesh Renderer/Filter will make the cloth render properly, but for Skinned Renderer the meshes are rendered sideways and in messed up positions. I've explored any number of solutions from X-Forms in 3dsmax to using Maya and Blender to reimport the meshes. It's definitely related to bones as that was the problem initially with Bone Weights.


Reply
#23
(26-05-2019, 08:04 PM)Saismirk Wrote:
After making a whole new project just to make the skinned cloth work, everything appears to work properly except for the mesh being rendered 90 degrees sideways for some reason. This happens to any skinned mesh even on Edit Particle mode. Nothing seems to fix this.

I should add that everything seems to work just fine with non-skinned meshes, even just switching a skinned mesh to be rendered with a regular Mesh Renderer/Filter will make the cloth render properly, but for Skinned Renderer the meshes are rendered sideways and in messed up positions. I've explored any number of solutions from X-Forms in 3dsmax to using Maya and Blender to reimport the meshes. It's definitely related to bones as that was the problem initially with Bone Weights.



Update:

I have found that problem lies in skinned meshes defaulting to their root bone's rotation values and the mesh's pivot position, overriding any skin positioning. For example, I use 3dsmax for my modelling using biped rigs, the meshes in question were assigned to the pelvis bone (root). Even though the biped as a whole has 0 rotation values, the pelvis had (-180, 0 , -90) rotation values, and the mesh had a pivot located at the feet. At runtime, even though the skinned mesh was properly positioned, Obi Cloth made it take the exact same rotation values as seen in 3dsmax, despite not matching the actual bone's rotation after import, and position it at the location of the pivot.

I managed to fix this by rotating the biped as a whole such that the pelvis bone had a global 0,0,0 rotation and the mesh's pivot matching the root bone's position. Skin wrapping the whole thing and finally rotating the biped back to its original position, and Xforms for good measure, then it was good to go.

I'm unsure if this is a unity problem with 2019's new fbx import features, or Obi not handling the root bone's transform properly. In any case it is fixable.

Things that were not related to this issue:
  • Unity's mesh optimization options. They indeed mess up the simulation and reinitializing everything fixes the issue (as if it wasn't hard enough to set up each cloth properly, you have to do everything from scratch).
  • Skin weight bones settings: Increasing the number of bone weights fixes the null vertex weight issue but it was unrelated to the mesh getting messed up in runtime.
Reply
#24
I'm getting the same "Bone weights do not match bones" issue on 2019.1.


I've tried : 
Unity's mesh optimization options to "Nothing"
Skin weight bones settings to high bone count

But still getting the error.
And I've re-generated topology and re-initialized in every attempt.

Please help.
Reply
#25
Hello? Any news about this issue? Is reverting back to Unity 2018 the only way now?
Reply
#26
(11-06-2019, 10:28 PM)gusrbehfdl Wrote: Hello? Any news about this issue? Is reverting back to Unity 2018 the only way now?

I would also be very interested. Tried now on Windows also, the character cloth scene does not seem to work, the mesh is and stays completely broken, even after following all given suggestions.
Reply
#27
(15-06-2019, 10:27 AM)qlee01 Wrote: I would also be very interested. Tried now on Windows also, the character cloth scene does not seem to work, the mesh is and stays completely broken, even after following all given suggestions.

Hi there,

I've opened a new thread to explain the situation:
http://obi.virtualmethodstudio.com/forum...07#pid3907
Reply