Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help  Question about garment onto a 3d avatar using Obi
#21
(30-04-2024, 08:04 AM)josemendez Wrote: This is entirely up to you. You can designate which actors should collide with other actors using collision filters.

kind regards,

Hi,
I have faced another problem with collision. I have confirmed in relation to Category and Collides With; and I got it was possible between the body mesh(having Obi Collider) and a cloth(adjust the value in Blueprint), which was good to know.
Next, I'd like to make two clothes collide each other so that top should be set the outer layer, always, as I asked questions in the previous post. And with the manual, it should be working but it seems like it didn't work.

I was wondering if I did it in a wrong way or not. Here is how I set the value.
_body mesh w/ distance field: in ObiCollider, Collision cateroty> 0 / Collides with> Everything
_cloth 1(top): in Blueprint, select all(Particle selection all red), Category> 2, Collides with> 0,1,2
_cloth 2(pants): in Blueprint, select all(Particle selection all red), Category> 1, Collides with> 0,1,2

After seeing that nothings has changed yet, I tried to add Obi Collider component to each clothes and set Category and Collide With value, and I saw the two clothes were just crumpled. I guess Obi might be confused with 3 different Obi Collider working at the same time.

I was wondering if there's a way that two clothes collide each other so that they were well worn on the body, (not intruding each other's surface).




Second, I reduced Collision margin value to 0.001, and I saw the clothes still intrude each other. So is Collision margin nothing to do with collisions in my situation?
*Additional question*: like a waist band of a pants in real life, is there an effect a cloth to shrink towards the body mesh?(I mean the center of an mesh, object, etc.)  

Third, the cloth is slippery and seems like a light cloth like silk. I have look through the manual below.
distance- https://obi.virtualmethodstudio.com/manu...aints.html
bend- https://obi.virtualmethodstudio.com/manu...aints.html
However, since I generated SkinnedCloth, I don't see some of the parameters. When I change the values according the manual, the outcome isn't really changed.
If there's a way that I haven't found yet to give a cloth to some physical properties like less stretch?
Please let me know.


Thank you, always.
Reply
#22
Hi!

(02-05-2024, 05:06 AM)onfitpark Wrote: After seeing that nothings has changed yet, I tried to add Obi Collider component to each clothes and set Category and Collide With value, and I saw the two clothes were just crumpled. I guess Obi might be confused with 3 different Obi Collider working at the same time.

Adding a ObiCollider component to a cloth doesn't make any sense. ObiCollider should only be added to colliders, as the name implies. See: http://obi.virtualmethodstudio.com/manua...sions.html

Keep in mind that Obi is a particle-based engine, so cloth already has its own collision geometry: particles. No need to add colliders to it.

(02-05-2024, 05:06 AM)onfitpark Wrote: I was wondering if there's a way that two clothes collide each other so that they were well worn on the body, (not intruding each other's surface).


This should happen by default, as long as particle collision constraints are enabled in the ObiSolver component and there aren't any large gaps in between particles. You can add a ObiParticleRenderer component to the cloth to visually inspect its particles, and see if you should increase their radius in some areas.


(02-05-2024, 05:06 AM)onfitpark Wrote: Second, I reduced Collision margin value to 0.001, and I saw the clothes still intrude each other.  So is Collision margin nothing to do with collisions in my situation?


Reducing the collision margin will make matters far worse, as particles have less margin to react to nearby particles when moving which will make missed collisions more common. You should instead increase it (be careful as very large margins will have a negative performance impact).

(02-05-2024, 05:06 AM)onfitpark Wrote: *Additional question*: like a waist band of a pants in real life, is there an effect a cloth to shrink towards the body mesh?(I mean the center of an mesh, object, etc.)  


Yes, you can reduce the stretch scale parameter in the cloth's distance constraints.

(02-05-2024, 05:06 AM)onfitpark Wrote: Third, the cloth is slippery and seems like a light cloth like silk. I have look through the manual below.
distance- https://obi.virtualmethodstudio.com/manu...aints.html
bend- https://obi.virtualmethodstudio.com/manu...aints.html


If the cloth is slippery or silk-like, it is because it has zero friction when colliding with other objects. Friction is a property of collisions, not internal to the cloth itself, so you can set it in the cloth's collision material. Increasing static/dynamic friction on either the cloth or the colliders it is colliding against will make collision less slippery.

(02-05-2024, 05:06 AM)onfitpark Wrote: However, since I generated SkinnedCloth, I don't see some of the parameters. When I change the values according the manual, the outcome isn't really changed.


SkinnedCloth has more parameters than regular cloth, not less. Could you specify which parameters you're trying to find on the skinned cloth?
Reply