How does MH do smooth ?

MakeHuman python API, python plugins, etc

Moderator: joepal

How does MH do smooth ?

Postby Brei » Wed Nov 23, 2011 6:40 am

Hi,
I've read MH docs, and got that MH implements changing body measurement by do partial Morphing, right?

But when I did the same thing there was alway an "Edge and Corner" problem between the adjacent meshes.
I mean the common edge between the adjacent meshes is sharp when partial morphing was performing.

It seems that this problem is nonexistent in the MH.
So I really want to know how MH does it? Is there any good smooth method?

Thanks so much.
Brei
 
Posts: 11
Joined: Mon Nov 21, 2011 10:25 am

Re: How does MH do smooth ?

Postby mflerackers » Wed Nov 23, 2011 9:29 am

We just recalculate the normals after each morph.
MakeHuman project Developer
mflerackers
 
Posts: 636
Joined: Thu Feb 05, 2009 11:53 am
Location: Kyoto

Re: How does MH do smooth ?

Postby Brei » Wed Nov 23, 2011 10:28 am

mflerackers wrote:We just recalculate the normals after each morph.


Thank you so much for reply.

One more question.
In MH 1.06a, when i change the value of "Stomach" slider bar, which parts was taken in morphing?

And did you do subdivision after morph?

Thanks
Brei
 
Posts: 11
Joined: Mon Nov 21, 2011 10:25 am

Re: How does MH do smooth ?

Postby mflerackers » Thu Nov 24, 2011 12:47 am

Any amount of vertices can change. We don't subdivide unless you work in "smooth" mode.
MakeHuman project Developer
mflerackers
 
Posts: 636
Joined: Thu Feb 05, 2009 11:53 am
Location: Kyoto

Re: How does MH do smooth ?

Postby Brei » Thu Nov 24, 2011 3:06 am

mflerackers wrote:Any amount of vertices can change. We don't subdivide unless you work in "smooth" mode.


I am so appreciate for your patience , i think i didn't illustrate my question clearly.

You divide the base.obj model into many sub-objects to be able to select certain marco or micro regions in the application.
So when a certain girth need to be changed, how do you fix which parts in the base.obj need to do morphing?
In other words, how do you define the vertex indices in the .target file (in the /data/targets/ folder)

Thanks.
Brei
 
Posts: 11
Joined: Mon Nov 21, 2011 10:25 am

Re: How does MH do smooth ?

Postby mflerackers » Thu Nov 24, 2011 6:02 am

As far as morphs are concerned there is only one object.
MakeHuman project Developer
mflerackers
 
Posts: 636
Joined: Thu Feb 05, 2009 11:53 am
Location: Kyoto

Re: How does MH do smooth ?

Postby Brei » Thu Nov 24, 2011 7:49 am

mflerackers wrote:As far as morphs are concerned there is only one object.


could you please say more about this? Thanks.

and how do you define the info in .target file?

i am studying your method for my project , so i really want to get more info about the details.

Thank you, thank you so much. :)
Brei
 
Posts: 11
Joined: Mon Nov 21, 2011 10:25 am

Re: How does MH do smooth ?

Postby mflerackers » Thu Nov 24, 2011 8:37 am

If you need things for your own project, I need to remind you that all code and data is licensed under the GPL3, so if you use any data from MakeHuman you need to place your project under the GPL3 as well.

The targets contain vertex indices and their displacement for a full morph. However the factors with which each morph is applied can depend on one or more dimensions of the human.
MakeHuman project Developer
mflerackers
 
Posts: 636
Joined: Thu Feb 05, 2009 11:53 am
Location: Kyoto

Re: How does MH do smooth ?

Postby Brei » Thu Nov 24, 2011 8:57 am

mflerackers wrote:If you need things for your own project, I need to remind you that all code and data is licensed under the GPL3, so if you use any data from MakeHuman you need to place your project under the GPL3 as well.

The targets contain vertex indices and their displacement for a full morph. However the factors with which each morph is applied can depend on one or more dimensions of the human.


Yeah,of course, i am so clear about it. it just a project in library of university.

could you please tell me how do you determine the numeral value of the vertex index and their displacement for a full morph?

Thanks . :)
Brei
 
Posts: 11
Joined: Mon Nov 21, 2011 10:25 am

Re: How does MH do smooth ?

Postby mflerackers » Thu Nov 24, 2011 9:05 am

Like I said, it's just vertex index i followed by a displacement vector d, so you do for each entry vertex[i] += f * d with f between 0 and 1.
MakeHuman project Developer
mflerackers
 
Posts: 636
Joined: Thu Feb 05, 2009 11:53 am
Location: Kyoto

Next

Return to Python scripts

Who is online

Users browsing this forum: No registered users and 1 guest