Forum: Poser - OFFICIAL


Subject: Morph Cleanup Script

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


Spanki posted Wed, 07 April 2010 at 6:36 AM

I implemented a form of Adaptive Screening (but currently labeled "Mesh Density Screening" in the interface) and it seems to be usefull...

With the new default Threshold value (0.000031), it will still move those polys in the back of V3's mesh towards the head-neck connection, but it won't smooth it out very well.  At that setting, it maintains almost all of the total 'height' of the skull - the polygons on the top of the head are ever-so-slightly larger and so aren't affected (as much).  However if you increase the Threshold to 0.000032 then you start affecting those.

With that in mind...

...so, given the above, my recommendation would be to just start with the default settings, run the script and see what you get... - if you see large polygons that look like they didn't get cleaned up, increase the Threashold value until you narrow in on the ones you want affected.

...note that you can also run multiple passes... this can sometimes help smooth out the existing topology (ie. once the polygons look like they are shaped correctly, but may still be a bit 'bumpy').  Just keep in mind that multiple passes on relatively large polygons/threshold may cause additional distortion (erm... more towards the base mesh shape).

The general issue / rule of thumb is... large polygons (or polygon areas) are more likely to move back towards the base shape, since there's relatively fewer of them defining the shape within that area.  If an area is made up of tiny V3 lip-size polys, then you can get away with pretty tight tolerances and/or more additional passes before you start losing the shape.

With the above in mind, you'll need to keep a close watch when working with V1 / Antonia type meshes, because the smallest polygons are not as far apart in size from the largest ones (like they are in V3 or V4).

Interface / Options:

Omit Split Edges -

For the most part, you want to leave this Enabled.

Omit Zero Deltas -

There are 3 'general' usages of this script... 1. You set the desired morph(s) on the Figure and then run the script - the resulting morphs will only contain the corrections.

  1. You zero all morphs on the figure and select some morph(s) from the list in the script's interface - the resulting morph will contain the selected morph(s), along with the adjustments/corrections.
  2. A combination of the above... the resulting morph will contain any morph(s) selected from the list, along with corrections based on those morphs, as well as the current (morphed) state of the figure, but will not contain the morph(s) set on the figure, themselves.

...the Omit Zero Deltas option is ONLY related to morphs set on the figure - only those vertices (contained in morphs active on the base figure) will be processed.

Omit Non-Morphed Verts -

This option is ONLY related to the morphs selected in the list - only those vertices (contained in morphs selected from the list) will be processed.  NOTE: Setting this option overrides the Omit Zero Deltas option.

Mesh Density Screening -

The enables/disables the option described in the top part of this post.  When this option is disabled, the complete list of polygons/vertices (not already screened out by some other option) will be processed, regardless of the Threshold setting.

Max Repetitions -

With this script, the only time you're likely to need this setting is if you set the Steps value very high, combined with tight Threshold values on a dense mesh :) (I had it kick in once when doing 100+ Step value with a small tolerance on V3).  Generally, you can just leave it alone.

Threshold -

How close you want the vertices to resemble thier original Relationships (relative to each other, in the base mesh).  See the top of this post for additional discussion.

Steps -

Determines how far the script moves vertices towards thier target / goal locations, for any given itteration.  Higher step values can sometime produce smoother results, with less shrinkage /deformation, but the affect is not as drastic as the early versions of this script - you can generally just leave this at the default value.

Passes -

As mentioned above, you might want to run multiple passes at the same Threshold value... you can now do that without having to run the script multiple times.

Have fun! 👍

Cinema4D Plugins (Home of Riptide, Riptide Pro, Undertow, Morph Mill, KyamaSlide and I/Ogre plugins) Poser products Freelance Modelling, Poser Rigging, UV-mapping work for hire.