olajay Posted July 14, 2014 Share Posted July 14, 2014 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 Quote Link to comment Share on other sites More sharing options...
olajay Posted July 15, 2014 Author Share Posted July 15, 2014 I figured it out using the point expression and rotating the normal 90 degrees for some reason.. Why is that? Attached the solved hip. dirvector_help_solve.hipnc Quote Link to comment Share on other sites More sharing options...
Skybar Posted July 15, 2014 Share Posted July 15, 2014 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 Quote Link to comment Share on other sites More sharing options...
olajay Posted July 15, 2014 Author Share Posted July 15, 2014 ah, that makes sense! I was thinking the wrong way. Thanks! I'll dissect your solution to get a better understanding of how you computed the normals. Ola 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.