Forum: Poser - OFFICIAL


Subject: Morph Cleanup Script

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


Cage posted Mon, 29 March 2010 at 2:48 PM

Quote - I'm not sure I understand the question... the ray-casting code (the snippet that I posted) is averaging the normals of the passed in list of close vertices and using THAT as the ray direction for the ray-cast... and yet, it sounds like that's what you're asking about / suggesting??

Or am I misunderstanding?

I guess I haven't been explaining well.  😊  :lol:  I've tested a process (mentioned in my only post on Sunday), which returns slightly better results under some circumstances.

What I do is use the closest vertices weights to average the normal, rather than just adding up all the normals and then dividing by the number of normals.  This seems to give more precision (less influence by distant vertices), and that helps when the number of influences is lower.  But it also introduces more of the sampling error problems of the closest vertices method, as the number of influences is increased.

However, it looks like this approach may be catching the places where the current averaged normals aren't making hits, at least at the lower influences setting.  I'm going to check whether it is, then test using that as a second pass, in hopes of at least getting tri-weights for all 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.