PeteSki Posted May 9, 2015 Share Posted May 9, 2015 Hi there, I'm was just messing around building a fence in Houdini and I came across this issue... I really want the fence posts to face along the direction but to stand up completely straight. Does anyone know how I can get this to work? Here's my scene if anyone has a sec to check it out. http://www.naffupdate.com/forumfiles/FenceIssue-veZ1RibM0H.hiplc Thanks!, Pete Quote Link to comment Share on other sites More sharing options...
sadhu Posted May 9, 2015 Share Posted May 9, 2015 To make fence post stand straight Add point sop instead of polyframe sop. Set the normal to 0,0,1 and in Fence Post and sub post, centerz parameter remove negative sign. FenceSoln.hiplc.hipnc Quote Link to comment Share on other sites More sharing options...
anim Posted May 9, 2015 Share Posted May 9, 2015 (edited) if you still need to keep planks aligned to the curve, you need the tangent, so polyframe is handy, however, you can use it to compute up vector and use {0,1,0} as N to keep them exactly upright you can as well use template group to isolate main and inbetween points before copy to streamline the flow a bit, instead of branching to soon, therefore avoiding duplicate nodes (like ray and polyframe nodes), but as well solving problem of overlapping planks from both copies FenceIssue_fix.hiplc Edited May 9, 2015 by anim Quote Link to comment Share on other sites More sharing options...
kgoossens Posted May 9, 2015 Share Posted May 9, 2015 I've added a tutorial on this specific issue. Quote Link to comment Share on other sites More sharing options...
PeteSki Posted May 10, 2015 Author Share Posted May 10, 2015 Awesome! Thanks for all the help, I'm gonna check out that tute now too. Pete Quote Link to comment Share on other sites More sharing options...
PeteSki Posted March 29, 2016 Author Share Posted March 29, 2016 Hey sorry to bring this thread back up but I've been refering back to it every now and then and I just noticed something that was causing me a little trouble. If I try to make the normals look at a point (as in your tute) it seems that they look at a point that is in a slightly different position. Do you know what might cause that? Thanks, Pete Quote Link to comment Share on other sites More sharing options...
Fenolis Posted March 30, 2016 Share Posted March 30, 2016 Is the aimed point on the same plane as the points your normals are coming from? Quote Link to comment Share on other sites More sharing options...
PeteSki Posted March 30, 2016 Author Share Posted March 30, 2016 Yeah that all seems fine. Here's the scene, if anyone has a sec to check it out. http://www.peterleary.com/ForumFiles/NormalsTest-YxwHgeZFoR.hiplc Thanks Pete Quote Link to comment Share on other sites More sharing options...
mestela Posted March 30, 2016 Share Posted March 30, 2016 Your normal expression is wrong. You're doing 'target-N', it should be 'target-P'. Attached a fix, as well as a way to do it in a point wrangle (point sop is evil, don't use it... ) NormalsTest_fixed.hiplc Quote Link to comment Share on other sites More sharing options...
PeteSki Posted March 31, 2016 Author Share Posted March 31, 2016 Ahh cool! Thanks Mestela! That makes more way more sense. 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.