Hi Ahmidou, I am getting the same error as Jeremie. From what I concur, the phi distribution on sphere node furnishes an array of position which is plugged into the direction of the a raycast node. The direction can be either a single vector or vector per point of the deformee while you are are supplying an array of vector, thereby causing incompatible types error.
I did not have time to compare your implementation with the paper to further debug this, but this can give you an direction to further solve this issue. Either that or we are not setting up in the tree in the correct way. On Tue, Dec 17, 2013 at 9:09 PM, Jeremie Passerin <gerem....@gmail.com>wrote: > Not sure, I'll try again tomorrow morning.. > > if anyone else on the list is testing it, let me know if it works for you. > > thanks again for sharing, that might be a nice addition to my tool set ! > > > On 17 December 2013 17:32, Ahmidou.xsi <ahmidou....@gmail.com> wrote: > >> I'm not in front on my computer, but what kind of error did you got? >> >> Le 18 déc. 2013 à 11:52, Jeremie Passerin <gerem....@gmail.com> a écrit : >> >> Nice job Ahmidou ! >> Looks pretty straight forward but I wasn't able to make it work yet. :D >> I got an error on the phi distribution on Sphere... I might be doing >> something wrong. >> I'm using XSI 2013, could that be it ? >> >> Here is what I've done >> >> >> # python >> xsi = Application >> >> # Your path here ! >> compoundPath = >> "\\\\source\\source\\dev\\passerin\\blurdev\\workgroups\\xsi_blurdev\\data\\Compounds" >> >> xsi.CreatePrim("Sphere", "MeshSurface", "", "") >> xsi.SetValue("sphere.polymsh.geom.subdivu", 24, "") >> xsi.SetValue("sphere.polymsh.geom.subdivv", 24, "") >> xsi.FreezeObj("", "", "") >> xsi.CreatePrim("Cube", "MeshSurface", "", "") >> xsi.SetValue("cube.cube.length", 9, "") >> xsi.ApplyTopoOp("TriangulatePolygons", "cube", "siUnspecified", >> "siPersistentOperation", "") >> xsi.FreezeObj("", "", "") >> >> xsi.SelectObj("sphere", "", True) >> xsi.ApplyOp("ICETree", "sphere", "siNode", "", "", 0) >> xsi.AddICECompoundNode(compoundPath+"\\initPMVC.xsicompound", >> "sphere.polymsh.ICETree") >> xsi.ConnectICENodes("sphere.polymsh.ICETree.port1", >> "sphere.polymsh.ICETree.initPMVC.Execute") >> xsi.SelectObj("cube", "", "") >> xsi.AddICENode("GetDataNode", "sphere.polymsh.ICETree") >> xsi.SetValue("sphere.polymsh.ICETree.SceneReferenceNode.reference", >> "cube", "") >> xsi.ConnectICENodes("sphere.polymsh.ICETree.initPMVC.cage", >> "sphere.polymsh.ICETree.SceneReferenceNode.outname") >> xsi.SelectObj("sphere", "", True) >> xsi.ApplyOp("ICETree", "sphere", "siNode", "", "", 0) >> xsi.MoveOperatorAfter("sphere.polymsh", "sphere.polymsh.ICETree1", >> "sphere.polymsh.shapemarker") >> xsi.AddICECompoundNode(compoundPath+"\\PMVC.xsicompound", >> "sphere.polymsh.ICETree1") >> xsi.ConnectICENodes("sphere.polymsh.ICETree1.port1", >> "sphere.polymsh.ICETree1.PMVC.Execute") >> xsi.SelectObj("cube", "", "") >> xsi.AddICENode("GetDataNode", "sphere.polymsh.ICETree1") >> xsi.SetValue("sphere.polymsh.ICETree1.SceneReferenceNode.reference", >> "cube", "") >> xsi.ConnectICENodes("sphere.polymsh.ICETree1.PMVC.cage", >> "sphere.polymsh.ICETree1.SceneReferenceNode.outname") >> >> >> >> On 17 December 2013 15:37, Alok Gandhi <alok.gandhi2...@gmail.com> wrote: >> >>> Will check that out, thanks Ahmidou! >>> >>> >>> On Tue, Dec 17, 2013 at 6:28 PM, Ahmidou Lyazidi >>> <ahmidou....@gmail.com>wrote: >>> >>>> Here is a new cage defomer based on this paper: >>>> http://www.wisdom.weizmann.ac.il/~ylipman/pmvc/pmvc.htm >>>> >>>> The result is very close the Harmonic coordinates deformation done by >>>> Pixar, but faster to compute, it's also better deformation than the >>>> Softimage factory one. >>>> To use it, just connect the initPMVC compound in the modeling region, >>>> and the PMVC one in the animation region, both on the deformed object. >>>> The cage must be triangulated! .. but once your happy with the >>>> deformation the initPMVC compound may be frozen , and then cage can be >>>> quadrangulated. >>>> The only limitation is that all the point of the deformee must be >>>> inside the cage. >>>> >>>> http://www.si-community.com/community/viewtopic.php?f=19&t=4683 >>>> >>>> Cheers >>>> ----------------------------------------------- >>>> Ahmidou Lyazidi >>>> Director | TD | CG artist >>>> http://vimeo.com/ahmidou/videos >>>> http://www.cappuccino-films.com >>>> >>> >>> >>> >>> -- >>> >> >> > --