Forum: Poser - OFFICIAL


Subject: Morph Cleanup Script

Cage opened this issue on Feb 24, 2010 · 592 posts


Cage posted Thu, 11 March 2010 at 12:32 PM

Quote - Just another observation/comment, re: Vert->NearVert correlation...

Keep in mind that since this method doesn't pay any attention to surface orientation/Normal,  a vertex on the inside of a nostril (for example) might well include (get correlated to) vertices on the outside of the nostril on the other mesh... the same thing could happen around the ear folds, etc. - basically any thin piece of skin-fold like that (eye-lids, lips, etc).
 
With the Nostrils, you can handle that situation easily enough with Material Screening (at least on meshes that have a separate Nostril material), but you might need some other method for things like the ears. 

A fix for this might be to do an angle check (between the two normals) before including vertices in the correlation and skipping them if the angle is too divergent (like maybe anything over 90deg).

I'm thinking about this.  Hmm.  I've noted the basic problem with lips and innermouth.  The problem can usually be fixed by improving the matching of the shape.  But a dot check on the normals could help improve results with more approximate shape-matches at comparison time, perhaps.  I think the main question is how this will impact speed.  With the .pyd, the process would be tolerably fast.  Without it, I'm not sure.  I'll check Numeric's dot product calculation speed.

Good thinking!  Thank you!  :woot:  I'm glad you've popped in to share your knowledge!  :thumbupboth:

===========================sigline======================================================

Cage can be an opinionated jerk who posts without thinking.  He apologizes for this.  He's honestly not trying to be a turkeyhead.

Cage had some freebies, compatible with Poser 11 and below.  His Python scripts were saved at archive.org, along with the rest of the Morphography site, where they were hosted.