Forum: Poser - OFFICIAL


Subject: Morph Cleanup Script

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


Spanki posted Fri, 26 March 2010 at 4:07 PM

Quote - I'm eager to test it!  :woot:  Thank you.  Adding a secret process to the .pyd only has minimal utility, however.  This will need to be ported to mere Poser Python before any process can be fully integrated into the script.  Can you explain what changes have been made?

Yeah, yeah - but can't a guy have some fun? :lol:  As mentioned earlier, I don't recommend porting this to the python code just yet, but at some point it could be.

The changes this time were... monkeying with the normals :).  The normal of the target mesh vertex (and thus the ray being cast) is averaged with the normals of all the closest vertices of the source mesh.  This is similar to an earlier suggestion you made, but instead of aiming at the 'position' that that method generates, it skews the ray more in the (average) 'direction' that that (cummulative) surface faces.

One thing to note about all of this is that - due to the tiny distances involved with very closely lined up meshes - the ray doesn't travel very far (in whatever general direction it's heading) before it hits the other surface, so the affect will be different if one of the meshes were scaled slightly (for example) - which might actually be an interesting test, btw.

I'm actually a little suprised at how well the brows worked out, but we already know that the non-ray-cast method works best on those, so they can be done as a separate pass.

As for the lumpiness in the forehead and outer-brow areas... I'm pretty sure that it's a general "UpHill" issue (hires vs lowres mesh). I'm still trying to come up with some way to address that but one of the problems is (as mentioned way back in the start of the previous thread), at the level where decisions are made, "shape" of surfaces/vertices are fairly indistinguishable from "smoothness" of said shape.  Having said that, I'm still a bit confused on why it's more "lumpy" than "flattened, to the lower-res polys", as I expoected.

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.