Jump to content

Align Geometry on Spline along TangentU and Y-Axis


sant0s81

Recommended Posts

Hey everybody,

some weeks I made a simple cave builder and it worked great.

But since I only used round circles, it was quite simple.

Now I want to create something similar, but with a flat ground, I attached an image what I mean.

 

Actually, I want to align the shape along the TangentU what works perfect, but at the same time on the Y-Axis so that the floor is correct.

The other thing is, that it makes no sense when the tunnel has a very steep angel, that ther is a floor - so there I want it based on the angel to become from the floor shape to a round shape.

Is it possible, to controll that somehow with a ramp?

Thanks alot and happy easter,

sant0s

cave_build_2.jpg

Edited by sant0s81
Link to comment
Share on other sites

Hey, thx alot to you!

I finaly could manage to align the shape in a correct way by setting the Normal to Y.

But I get to another problem now: On some parts of the spline, the geometry is twisted.

Is there a way to fix that or at least, smooth the twist out?

 

twisted.jpg

Edited by sant0s81
Link to comment
Share on other sites

Hey @LaidlawFX

sry for late response, but thx alot! Thats great - so much more efficent than my setup. :)

I ll gonna work on that.

edit:
I am just trying to figure out, how to calculate the angel by normal.
Somehow I guess, I have to use the attribute VOP and create a cross product, at least I am reading all the time about that.

The goal is to get the angel (0° - 90°), feed that into a ramp and use the 0-1 value to control the scale of the circle.
Is that possible with the attribute VOP or only in VEX?

Thx again! :)

Edited by sant0s81
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...