Page 3 of 4

Re: How can I mark the body part in makehuman?

PostPosted: Thu Sep 02, 2021 8:19 am
by joepal
In MPFB1 (i.e the previous MPFB, not MPFB2), there is a developer utility for saving vertex indices of vertex groups to a local file:

dump_vgroups.png


The end result from clicking the button in the example in the image would look like this:

Code: Select all
#!/usr/bin/python
# -*- coding: utf-8 -*-

vgroupInfo = dict()
vgroupInfo[""] = dict()
vgroupInfo[""]["some_random_group"] = [0, 1, 2, 3]


This is not exactly the same syntax as in MPFB2 (nor, as it were, for a weights file), but at least you would get an array with vertex indices.

The restriction is that the utility is hard coded to save the file as /tmp/vgroups.py, which which doesn't make much sense on windows (it is intended for linux). And obviously that you would have had to assign the proper vertex groups before saving the vertex indices.

Re: How can I mark the body part in makehuman?

PostPosted: Fri Sep 03, 2021 9:19 pm
by punkduck
Just a quick remark from my side. Adding more groups to the mesh will not change the deformation. This will only be changed, when it is e.g. normalized (= sum of all groups is one and therefore this would change values).

An example: I added groups for hair-grow. Groups to deform a character must simply have the same names as the bones. One should not touch these. But adding more groups is no problem. A group featuring a bool attribute would be zero or one. Otherwise the values should be between 0 and 1 and could be used different (in my example the hair density or hair length).

Re: How can I mark the body part in makehuman?

PostPosted: Tue Sep 07, 2021 7:18 am
by makehuman987
Hi,dear joepal:
I installed the MPFB, MPFB2 and makehuman extras in blender 2.9.3, but I could not see the plugins in viewport, as the attached pic shows. Is there anything wrong?

Re: How can I mark the body part in makehuman?

PostPosted: Wed Sep 08, 2021 5:53 am
by makehuman987
hi,joel and punkduck:
there's no problem about the makehuman plugins now. As joe has said, after pressing dump groups, there comes an error: no such file or directory:tmp/vgroup.py, which is for linux.
Maybe I need to turn to linux.

Re: How can I mark the body part in makehuman?

PostPosted: Wed Sep 08, 2021 6:35 am
by makehuman987
Hi, dear joe and punkduck:
I found there are so many vertices around certain body part such as eye or nose, so do I need to choose as many verts as possible or a moderate amount of verts? Choosing more verts would have better effects than less verts? I mean, maybe effects on the animation.

Re: How can I mark the body part in makehuman?

PostPosted: Wed Sep 08, 2021 7:16 am
by makehuman987
Hi, dear joe:
sorry, this may be a fundamental question. I found some indices are for the verts but some are in the center of mesh. what's the difference between these two kinds of indicies? for example, index 958 is labeled in the center of the mesh while indices 3903,720 are labels at the vertex.

Re: How can I mark the body part in makehuman?

PostPosted: Thu Sep 09, 2021 2:27 pm
by joepal
The vertices inside the body are probably joint cubes. I.e these are the locations of joints between rig segments. You'll discover such cubes in for example elbows and knees, but there are also joints for tongue, spine and so fort.

Re: How can I mark the body part in makehuman?

PostPosted: Fri Sep 10, 2021 2:08 am
by makehuman987
Hi,Joe:
Thanks for your reply, it's of great help.

Re: How can I mark the body part in makehuman?

PostPosted: Mon Sep 13, 2021 9:25 am
by makehuman987
hi, dear joe and punkduck:
I met a blender problem. I created a man using makehuman and uploaded it to mixamo to animate the character and then downloaded it as fbx file. But when I import the fbx into blender, the scale of the character became nearly 1% of the origin scale so the man looks so small , similar situation occured to .dae format. I tried to change the units in blender but it did not work. On mixamo website there's no place to change the unit. Could you give some advice on solving this? Thank you.

Re: How can I mark the body part in makehuman?

PostPosted: Tue Sep 14, 2021 7:27 am
by makehuman987
hi, dear joe and punkduck:
The scale problem import from mixamo into blender is solved. This problem is caused by makehuman 1.1. After transferring to makehuman 1.2.0, there's no such problem. Thanks.