Page 1 of 1

Help with creating clothes using MPFB

PostPosted: Mon Oct 07, 2024 5:24 am
by slambfixed93
I have been trying to make a pair of pants using MPFB. It is important for the project I am working on to be able to have the mesh scale properly with the body weight.

I design them using the default body shape/size parameters.
pants_default.png
Pants with default parameters



When I change the body to have maximum adipose tissue, the vertices around the intergluteal cleft protrude outward.
pants_adipose.png
Pants with max weight, min muscle


I am vaguely aware of why this might be happening. My question is this: is there anything I can do to prevent this from happening? I have tested this with some of the default MakeHuman assets and noticed that they do not suffer from this issue.

I've read every wiki doc and forum post I could find and have come up with nothing. I've tried changing vertex groups on the clothes mesh only to get similarly distorted results.

Any help would be greatly appreciated.

Re: Help with creating clothes using MPFB

PostPosted: Mon Oct 07, 2024 7:25 am
by joepal
My guess is you've matched the clothes vertices with body vertices rather than helper vertices. This will cause deformations which do not look natural for clothes.

The theory here is that you should match vertices against the correct vertex group on the base mesh. Which group that is the most appropriate depends on what you want to achieve, and it's not always easy to figure out which one makes the most sense. It is also important to understand that not all vertices need to be matched to the same group.

The relevant groups in this case are: body, helper-tights and helper-skirt.

The matching is done by creating a group with the same name on the clothes mesh and assigning vertices to it.

My suggestion here would be matching most of the clothes vertices with helper-tights, but then experiment with assigning the vertices in the tricky area with helper-skirt instead. The skirt helpers do not deform in the same way in that area, which might solve your problem.

Re: Help with creating clothes using MPFB

PostPosted: Mon Oct 07, 2024 7:29 am
by joepal
If it still does not work, there are other strategies for working around the problem. You could then for example create your own vertex group on the base mesh ("myclothes" or something) and only include vertices which do not deform in unwanted ways. Then match the clothes vertices against that group.

For complex scenarios (such as between the legs), often a mix of strategies will give the best results.