Forum: Poser Python Scripting


Subject: Moving morphs between different figures

Cage opened this issue on Dec 20, 2006 · 1232 posts


Cage posted Thu, 15 March 2007 at 6:55 PM

*"Make sense? Would a trick like this work?"

*That sort of process could be helpful in some cases, where changes may need to be made to the contours of the two meshes in order to line them up for a comparison.  Happily, such complexity isn't really needed for a simple case like Vicky 1 to Vicky 3 or vice versa.  The Vicky 1/2 and Vicky 3 head meshes are close enough in shape that one can mainly use slight translation and scaling to get good correlations.  For the monkey transfer, the source figure was translated -0.003 on z, I believe.  I've had to translate slightly on positive y for the mouth and scale down slightly on x for the ears with the same actor-actor comparisons.  So it can be fairly simple to get good comparisons.

The above image shows a shape transfer derived from comparison files created from the alignment I posted above, with the red mesh outline.  Here, I've merged several datafiles, which were created separately, for different material zones.  You can see that the correlation was obviously pretty good, but there are some missed verts on the edges between the material zones.  So the comparison process really doesn't have to be too complicated, but one will need to use whatever tricks one can to line up any given pair of actors as well as possible.

I think I should have pointed out earlier that mesh comparisons can be sped up by raising the value entered in the "Octree regions" entry field of the GUI.  The default value is 4, which is good for most cases, perhaps.  But Spanki's tests revealed that a value of 7 is quite good for heads.  Raising the value even more may help with higher resolution meshes, but eventually there is some tradeoff between the number of verts in each octree region versus the number of region comparisons being run, so diminishing returns will apply.  At any rate, 7 is better than 4 for head comparisons.

===========================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.