Jump to content

Point Normal - Control each point's normal separately


chishbak

Recommended Posts

Hi guys

 

Does anybody knows  a method to rotate separately  each normal of a point from a curve ? I  want to select 1 or X number of  points  and than to rotate their  normal as desired.

 

how to do that?

 

 

Thx

Edited by chishbak
Link to comment
Share on other sites

Another option is to move each point in the direction that you want its normal to point.  Then using a point sop, connect your original points into the first input and the edited points into the second.  Then for the normal use: $TX2-$TX, $TY2-$TY, $TZ2-$TZ.   This will set each normal to point to the position of the edited points.

Link to comment
Share on other sites

Houdini world is divided into those who use quaternions and those who are going to use them :)

Now say you want to rotate Normals for point num 0  1 and 2 by 45 degrees around X axis.
Laydown attrib wrangle enter @ptnum == 0 1 2  in Group field and following in VEXpression field :

float angle = radians(45);
vector axis = set(1,0,0);
vector4 myQuaternion = quaternion(angle,axis);
@N = qrotate(myQuaternion,@N);

 

 

 

 

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...