Welcome to od|forum

Register now to gain access to all of our features. Once registered and logged in, you will be able to contribute to this site by submitting your own content or replying to existing content. You'll be able to customize your profile, receive reputation points as a reward for submitting content, while also communicating with other members via your own private inbox, plus much more! This message will be removed once you have signed in.

Sign in to follow this  
Followers 0
samsin

Orientating stairs along curve

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

Share this post


Link to post
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

Share this post


Link to post
Share on other sites

Thanks that worked, I tried something similar earlier but accidentally used 'normal name' from the polyframe sop which messed with the result.

Edited by samsin

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
Sign in to follow this  
Followers 0