Forum: Poser - OFFICIAL


Subject: Morph Cleanup Script

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


Cage posted Tue, 30 March 2010 at 12:47 PM

Quote - Great - thanks.  I've looked over the code and tested it a bit and it seems to be working as expected.  I didn't see any screening of the tripolys for duplicates (?) but that optimization can be done later if it's not already there.  Nice work.

I finally went ahead and updated the readme file and updated the archive (link above).  It's the same filename as before, so the link on your site doesn't need to be changed.

As I have some time, I'll see if I can come up with a fix for that close-vert weighting code.

Oh!  I forgot about the vpolys screening.  :lol:  I'll do that today.  That should help speed it up a bit.  I also ended up building the vertex normals for the Target using the tripoly-preparation code, but that isn't correct.  The vertex normals for the triangulated mesh may not be identical to the regular normals, depending on the shaping of the mesh when the triangulation is applied.  The normals shouldn't vary too much, but the process should still be fixed.  All of the tripoly lists are also unnecessary for the Target mesh.

Ooh!  Thank you for the formal update of the _tdmt.pyd download!  Excellent.  :woot:

The weighting code isn't a high priority, but fixing it should help matters, hopefully.  I'll do more web-searching and see if I can find anything.  Possibly the Blender source code could help.  Blender has an option for sphere-driven joints using falloff zones, and can generate vertex weights based on the placement of the sphere zones.  The method used for that might at least help point in some useful direction.  I'll see what I can find.  If you get a chance to do anything with it, that would be great!  :woot:

Do you think there's any chance that trying another triangulation method might help?  The fanning method is the easiest, but possibly not the best.  In most cases, particularly since were largely dealing with quad-polygons, it probably doesn't make much difference.  I'm wondering whether it could, though, at least in some cases.

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