Forum: Poser Python Scripting


Subject: Moving morphs between different figures

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


Spanki posted Sat, 30 December 2006 at 1:52 AM

Quote - If I understand what you're saying, I think a variant of your #2 procedure is currently in use.  Right now I'm 'mapping' vertices in one mesh to vertices in another, then transferring adjusted morph deltas between them.  I don't really compare the meshes beyond finding the verts to correlate with one another, and I don't look at the 'shape' of the mesh beyond normalizing and applying the morph deltas.

Ahh - thanks.

Quote - Once the vertex mapping is in place, it seems like it could be used as a point of reference for matching two meshes's default shapes.

Yes... in this case, you'd be making a vertex mapping table between 2 default mesh shapes and then later using that data to transfer the morphs from the source to the target mesh.

Quote - The trick will be getting the mapping down effectively.  I'm not sure whether the 'raycasting' method of looking for line-plane intersections will return better correlations than the current method, which just tries to find the closest vertex.  Presumably they'll both have similar limitations and somewhat different strengths and weaknesses....  It would be hard to get uglier than some of the results I've ended up with while experimenting with the current vertex method.  Hoo boy.

 

If I understand the current method correctly (finding the closest vertex), then I suspect that this new method will be an improvement in most cases, with the assumption that the vertices are more closely following what the related surface is doing (can be influenced by more than one vertex).

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.