Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help  Problems integrating Obi Cloth with UMA 2, no particle contacts
#2
(10-11-2021, 12:59 AM)chris_stamati Wrote: - At the start, the top cloth is colliding properly with the top cloth but as soon as I change the TOP item the top part is not colliding anymore, all I do is switch the blueprint, do I have to destroy everything and add new components? How can I improve TOP and BOTTOM collision?

If you're simply switching blueprints, the skin constraints specified by the blueprint will be used. These are responsible for "collisions" in skinned cloth (though as you know, they're not really collisions). It *should* work. How are you switching to the new blueprint? Is the blueprint being generated at runtime, or pre-made in editor?

(10-11-2021, 12:59 AM)chris_stamati Wrote: - I noticed that I'm getting this error:

Is it because the ObiSkinnedRenderer replaces the generated mesh by UMA with the mesh from the blueprint? Do you know how to create a copy of the mesh at runtime so UMA can delete it and it will not cause problems... 

Obi already creates a copy of the SkinnedMeshRenderer's mesh, and uses it for deformation and rendering. Not sure how UMA handles meshes internally, but making a copy of a mesh at runtime is as simple as:

Code:
var copy = Instantiate(mesh);

(10-11-2021, 12:59 AM)chris_stamati Wrote: - The sleeves of the shirt are always clipping? I'm not sure why but If I paint low skin radius they will not move as much as they should move. Do you have some tips for the sleeves of the shirt?

Either skin backstop parameters are not properly set, or there's a delay between the animation and the simulation. I'd bet its the latter.
Make sure that simulation is being updated after character animation (otherwise you'll always have a 1-frame delay between them). This means using the right combination of update modes for the animator and Obi. For instance: set the animator to "update physics", and use a ObiLateFixedUpdater component to update Obi. Or, set the animator mode to "normal", and use ObiLateUpdater. See:
https://docs.unity3d.com/Manual/ExecutionOrder.html

If you leave the animator in normal mode (the default) and use ObiLateFixedUpdater, the simulation will be updated at the end of FixedUpdate() and the animation will be updated in Update(). This will cause the simulation to work with animation data that is 1-frame old.

Quote:The simulation is pretty good, I'm sure that with proper painting will be amazing!! Thank you again for the amazing asset. I can't wait for new updates!!!

Thanks! there's a small update to cloth coming soon, though it focuses more on softbodies and ropes. A big cloth update is scheduled a couple months from now Sonrisa.
Reply


Messages In This Thread
RE: Problems integrating Obi Cloth with UMA 2, no particle contacts - by josemendez - 10-11-2021, 10:43 AM