Jump to content

Point normal to drive direction


Recommended Posts

Hi all,

 

I'm modeling a procedural house where i am controlling the dimensions of the house from points in an add sop. I'm duplicating panels around using the points positions and clipping them. However, where the roof declines, I want to drive the clip plane sops direction from the point normal between the two points defining the roofs direction. I have no idea how to proceed as I am fairly new to Houdini.

 

I have attached a simple example hip.

 

 All help appreciated :-)

 

Ola

dirvector_help.hipnc

Link to comment
Share on other sites

I figured it out using the point expression and rotating the normal 90 degrees for some reason.. Why is that?

 

Attached the solved hip. 

The Clip SOP wants the direction, and before you rotate the normal it isn't pointing to where you want. The clipping plane is perpendicular to the normal, if you will. You could do something like this to get the same result, added nodes are in yellow:

dirvector_help_solve_dv.hipnc

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