Jump to content
PeteSki

Trouble controlling orientation of an object copy along a curve

Recommended Posts

Hi there, 

I'm was just messing around building a fence in Houdini and I came across this issue...

Screen%20Shot%202015-05-09%20at%201.15.4

 

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

 

Screen%20Shot%202015-05-09%20at%201.22.5

 

Thanks!,

Pete

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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 by anim

Share this post


Link to post
Share on other sites

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?

 

Normals%20Issue-zUOY4ZBXIj.gif

 

Screen%20Shot%202016-03-29%20at%201.45.5

 

Thanks,

Pete

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×