aracid Posted November 30, 2004 Share Posted November 30, 2004 Hey all Could someone explain how i could point the Point normals of one surface -B- to another surfaces Points (of the same point count) -A- ie I know the point sop is probibly the first solution, but if the explanation could be done using a custom sop, it would be great. Thanks in Advance aracid Quote Link to comment Share on other sites More sharing options...
old school Posted November 30, 2004 Share Posted November 30, 2004 I just built a tool that takes two inputs and aims the first ponts at the secon points: The first is the aim points and the second input is the target points. It is interactive and commented. It is fully interactive in the 3D viewport as well. You can do crazy stuff like orient points at other points on the same geometry using the native sort order. I wanted to bash this one out for a long time and it is pretty simple. I will have this posted up on the exchange very soon. -jeff Quote Link to comment Share on other sites More sharing options...
sibarrick Posted November 30, 2004 Share Posted November 30, 2004 The point sop solution is pretty easy. Assuming the same number of points and point ordering. Just pump the points you want to look at into the second input and then in the add normals field put $TX2-$TX $TY2-$TY $TZ2-$TZ then follow this up with a facet sop, with make normals unit length turned on. Quote Link to comment Share on other sites More sharing options...
aracid Posted November 30, 2004 Author Share Posted November 30, 2004 hey hey thanks for the reply guys old school --> would like to try out ur gadget once u done :-) sibarrick, thanks for the facet sop tip, i had the equation, butthe facet sop is what i needed to add how in vex can i use, say the Position of a point from the second input? basically, how do i read the second input in vex ? thanks in advance all the best aracid Quote Link to comment Share on other sites More sharing options...
deecue Posted November 30, 2004 Share Posted November 30, 2004 can't help you out vex wise, but look into the point() function to obtain point position.. Quote Link to comment Share on other sites More sharing options...
sibarrick Posted November 30, 2004 Share Posted November 30, 2004 (edited) In vex use the import function, this lets you specify which input to use so int test = import("P", myP, 1, ptnum) ; will bring in the position of point ptnum from input 1. Input numbering starts at 0. Edited December 1, 2004 by sibarrick Quote Link to comment Share on other sites More sharing options...
aracid Posted November 30, 2004 Author Share Posted November 30, 2004 THREE WORDS ---> FAN-TAS-TIC! thanks sibarrick and thanks deecue for the advice. all the best aracid Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.