Forum: Poser - OFFICIAL


Subject: Morph Cleanup Script

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


Cage posted Fri, 05 March 2010 at 8:20 PM

The idea is to derive a UV transfer from one geometry to another, using a TDMT comparison data file.  This can be done (mostly).  Spanki and I have both done it in different contexts.  I started working on the idea because I wanted to port my V1 morphs to V3, but I had no money at the time and no V3 textures.  So I wanted to port the V1 UV's to V3, so I could use my existing textures as well as morphs.

I believe (correct me if I'm mistaken, anyone) that Ian Porter is suggesting a similar process, but using something like DP Hoadley's (begging his pardon if I've misspelled) remappings of different figures as a sort of control for the process.

The problem with using the data file for UV transfer is that we correlate vertices to vertices.  UV's, however, use texvertices.  A vertex can have as many texvertices as there polygons of which the vertex is a part.  We only have correlation data for one vertex, while there can be many texvertices.  (Boy, I'm gonna confuse myself in a minute.... :lol:)  We don't get enough data from the comparison of vertices to be able to determine how to handle all possible texvertices.

Transfer works fine when there's only one texvertex to the vertex.  The trouble is on the UV seams, where there are multiple texvertices for the UV seam edge vertices.  If we use the vertex data we have for any given vertex for all of its texvertices, the texvertices overlap and at least one of the UV islands has incorrect seams.  The resulting mess is hard to clean up by hand, unless you have a simple geometry with few UV seams.  As far as we could determine, the problem can't be resolved with code.  We don't have enough information and human input is required to sort it out.

Although I wonder if something like restore_detail, or another smoothing process, for texvertices might be able to pull the errant seam texverts into place for their respective UV islands.  Hmm.  I tried things like that at the time, but hadn't yet developed much capability with such things.

I'm not sure I'm explaining adequately.  Apologies, if I'm not.  :blushing:  May need more coffee.  :lol:

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