Sign in to follow this  
SpreeTree

Orientation Verts in a Given Direction

Recommended Posts

I'm hoping I can explain this clearly... I have made a circle, of points, which have noise applied to them making the circle a bit more random and 'wobbly'. I want to build a tunnel around this line, in effect creating a tube which constantly loops. What I have a problem with is orientating the points, so they follow the direction of the line. The spline is made up of a collection of points, and each of these points have a direction pointing towards the next point. I then create a circle of verts around each point, all orientated around the X axis. Obviously, if I use these verts, the tube will not 'flow' around, rather the tube will be rather static, and un-fitted. I want to orientate the circle of verts so they direction of the vert circle faces the direction of current point, thus making the tube flow. I tried translating the direction of the point into a rotation matrix, then applying this rotation matrix to each vert point, but the results seemed a bit erratic. Hopfully, I have explained my problem clearly, and someone has an answer Thanks Spree

Share this post


Link to post
Share on other sites
Quote:
Original post by SpreeTree
I'm hoping I can explain this clearly...

I have made a circle, of points, which have noise applied to them making the circle a bit more random and 'wobbly'.

I want to build a tunnel around this line, in effect creating a tube which constantly loops.

What I have a problem with is orientating the points, so they follow the direction of the line. The spline is made up of a collection of points, and each of these points have a direction pointing towards the next point.

I then create a circle of verts around each point, all orientated around the X axis. Obviously, if I use these verts, the tube will not 'flow' around, rather the tube will be rather static, and un-fitted.

I want to orientate the circle of verts so they direction of the vert circle faces the direction of current point, thus making the tube flow.

I tried translating the direction of the point into a rotation matrix, then applying this rotation matrix to each vert point, but the results seemed a bit erratic.

Hopfully, I have explained my problem clearly, and someone has an answer

Thanks
Spree
Check out this article, or the 'parallel transport frame' article in GPG. If your curve can follow any path, you'll probably want the PTF or something similar. If the tube has to connect to itself at the end, you'll have to do a little extra work to connect the first and last circles, as they're unlikely to line up correctly.

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