Jump to content

Orientating stairs along curve


samsin

Recommended Posts

Hi guys,

I'm attempting to create a procedural staircase that instances each step along points of a curve. I have tried to use the normal and tangent attributes to achieve this, however I've only been able orientate the entire steps rotation along the path when (I think) what I need to do is make each normal pointing towards the previous point, while ignoring the Y-value of the new normal so that the stair remains level. I assume this is achieved using a point VOP w/ add normal and then deleting the N[y] attribute but I can't seem to calculate the correct direction of the normal.

Sorry about bringing such a simple problem, I feel like the solution is obvious but I can't seem to see it.
Cheers!

stairs.hiplc

Link to comment
Share on other sites

you can use polyframe sop to calculate tangent and output it as N

in point sop you can remove the y component of N so the stairs remain level

you may also want to create "up" vector pointing up if the orientation isnt behaving correctly

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