I hesitated a bit in sharing this, as I can’t vouch for it’s accuracy or performance, but young Marcus once attempted something along these lines. I remember also struggling with rotations as well, and detailed variations of the input surface during the transformation. Maybe my former goals can in some way help you reach yours.
- moConvertToEdgeSpace.py <https://gist.github.com/mottosso/e015201439b5fd1b9f8b> It’s (to my own surprise) fairly well documented and logical in the comments of each relevant function. On 7 January 2016 at 08:13, Rémi Deletrain <[email protected]> wrote: > Hello everyone, > > I return to this topic I abandoned for lack of time ... > > I think doing a lot easier than what I had expected. Instead complicate my > life with the matrix simply play with the normals. > > I have a point that a normal. > I have two points, so a direction (so a normal) and length. > > So just make a difference between these two points and two normals ... > > ----------------------------------- > > So in theory : > > > suffix 1 = initial mesh > suffix 2 = secondary mesh (shape for blendshape) > suffix 3 = final mesh target (target for blendshape+) > > dif_point = pt2 - pt1 > dif_normal = n2 - n1 > new_normal = n3 + dif_normals > new_point = pt3 + (new_normal * dif_point.length) > > ----------------------------------- > > With that I find the right position while I don't rotate my joint. > So I have a great blendshape ... :) > > The problem now is that when I rotate my joint the points move more or > less in the good direction but not deformed properly. I'm still looking why > ... > > https://www.dropbox.com/s/bn19i40vf3ub32f/show_1.jpg?dl=0 > > -- > You received this message because you are subscribed to the Google Groups > "Python Programming for Autodesk Maya" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/python_inside_maya/08af3fa3-0f87-4752-97e9-ec6c85c66b2f%40googlegroups.com > <https://groups.google.com/d/msgid/python_inside_maya/08af3fa3-0f87-4752-97e9-ec6c85c66b2f%40googlegroups.com?utm_medium=email&utm_source=footer> > . > > For more options, visit https://groups.google.com/d/optout. > -- *Marcus Ottosson* [email protected] -- You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CAFRtmOAZsVLHg3qB2VCD6RgMRzoGxKQsOisvh7D0BL9es9313Q%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
