How does MH do smooth ?

MakeHuman python API, python plugins, etc

Moderator: joepal

Re: How does MH do smooth ?

Postby Brei » Thu Nov 24, 2011 9:12 am

mflerackers wrote: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.


yeah,yeah, i got it. but how do you determine the vector d in target file?

for example, a line in "male-child-muscle-heavy-stomach1.target" is

2888 -0.004597 -0.095978 0.474882

how do you know the full morph of vertex 2888 is the vector (-0.004597 -0.095978 0.474882),
and why do you choose vertex 2888 in this target file?

i mean where all the target files come from?

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:25 am

The full morph of vertex 2888 with this target is obj.verts[2888] += (-0.004597 -0.095978 0.474882). The vectors are differences, not end positions. The target files are made by modeling a final position and then subtracting the original model from it.
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 9:32 am

mflerackers wrote:The full morph of vertex 2888 with this target is obj.verts[2888] += (-0.004597 -0.095978 0.474882). The vectors are differences, not end positions. The target files are made by modeling a final position and then subtracting the original model from it.


yeah! got it!

A presumptuous request, could you please share your final position models ? ;)

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:42 am

I don't have those. You can just calculate them by adding the target to the obj.
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 10:36 am

mflerackers wrote:I don't have those. You can just calculate them by adding the target to the obj.


ok, thank you for all of your help.

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

Previous

Return to Python scripts

Who is online

Users browsing this forum: No registered users and 1 guest

cron