How can I mark the body part in makehuman?

Tech support and suggestions forum. If you only have a basic question on how to get started, please use the "newbies" forum in the community section.

Moderator: joepal

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

Postby joepal » Thu Sep 02, 2021 8:19 am

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.
Joel Palmius (LinkedIn)
MakeHuman Infrastructure Manager
http://www.palmius.com/joel
joepal
 
Posts: 4465
Joined: Wed Jun 04, 2008 11:20 am

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

Postby punkduck » Fri Sep 03, 2021 9:19 pm

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).
User avatar
punkduck
 
Posts: 1216
Joined: Mon Oct 17, 2016 7:24 pm
Location: Nuremberg, Germany

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

Postby makehuman987 » Tue Sep 07, 2021 7:18 am

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?
Attachments
MPFB_plugin_bug2.png
MPFB_plugin_bug.png
makehuman987
 
Posts: 50
Joined: Mon Jul 19, 2021 7:41 am

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

Postby makehuman987 » Wed Sep 08, 2021 5:53 am

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.
makehuman987
 
Posts: 50
Joined: Mon Jul 19, 2021 7:41 am

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

Postby makehuman987 » Wed Sep 08, 2021 6:35 am

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.
makehuman987
 
Posts: 50
Joined: Mon Jul 19, 2021 7:41 am

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

Postby makehuman987 » Wed Sep 08, 2021 7:16 am

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.
makehuman987
 
Posts: 50
Joined: Mon Jul 19, 2021 7:41 am

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

Postby joepal » Thu Sep 09, 2021 2:27 pm

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.
Joel Palmius (LinkedIn)
MakeHuman Infrastructure Manager
http://www.palmius.com/joel
joepal
 
Posts: 4465
Joined: Wed Jun 04, 2008 11:20 am

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

Postby makehuman987 » Fri Sep 10, 2021 2:08 am

Hi,Joe:
Thanks for your reply, it's of great help.
makehuman987
 
Posts: 50
Joined: Mon Jul 19, 2021 7:41 am

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

Postby makehuman987 » Mon Sep 13, 2021 9:25 am

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.
makehuman987
 
Posts: 50
Joined: Mon Jul 19, 2021 7:41 am

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

Postby makehuman987 » Tue Sep 14, 2021 7:27 am

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.
makehuman987
 
Posts: 50
Joined: Mon Jul 19, 2021 7:41 am

PreviousNext

Return to Bugs, problems and feature requests

Who is online

Users browsing this forum: No registered users and 1 guest