Jump to content

[QUESTION] Alternative to Add Normals as in Old Point node?


neblina

Recommended Posts

Hello everyone!

Please see the picture attached. In the "old" Point node is possible to simply "Add Normals", make operations like subtracting vectors. I'm just beginning Houdini, so I apologise if this is dumb or extremely simple. How would you go on to achieve the same results without using the old Point node?

The setup is simple, this is a subnet, and the Switch is connected to a toggle on the upper level. When this is on, the user has the ability to control a handle and the point normals would "point at it / follow it".

Any ideas? Thanks in advance. 

Screen Shot 2017-10-24 at 21.35.47.png

Link to comment
Share on other sites

Let's assume we're at the origin, you have a object and a point representing your handle.

Let's make there normal there position, normalized.

@N = normalize(@P);

Put object into first input of another wrangle, the point into the second.

@N = @N - point(1,"N",@ptnum);

The N of your object should point towards the point now

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...