create curve from points with bezier handle-type interpolati

   2439   2   0
User Avatar
Member
4 posts
Joined: Nov. 2018
Offline
Hi all,

can anyone please help me - I need to connect points in a certain order and then resample them to create the path with more specific/controllable bezier type interpolation rather than the default ouput of the resample sop as seen in yellow.

Essentially I need a way to control the arriving/leaving orientation and the magnitude/stiffness, so beizer curves and handles in 3d would do the trick i think..

Been stuck on this for weeks would be amazing if someone can point me in the right direction - can i use the new curve sop somehow? the setup needs to be procedural and follow from the position of the points in blue and red.

many thanks for any advice,

H

Attachments:
interpolation.png (436.7 KB)

User Avatar
Member
9384 posts
Joined: July 2007
Offline
there is nothing special about the new curve tool, just UX

it uses traditional bezier curves under the hood, so for fully procedural control you can do just use that
so if you already know your desired tangents from each of the points, just create a point for each of them and connect the points and tangent points in order into a single bezier curve


you also have other options if you are open to existing interpolation functions rather than requiring custom tangent directions
add your points to a single poly curve and use one of:
- Fit SOP
- Poly Spline SOP (Cardinal)
- Circle Spline SOP
Edited by tamte - July 20, 2022 16:42:16
Tomas Slancik
CG Supervisor
Framestore, NY
User Avatar
Member
4 posts
Joined: Nov. 2018
Offline
thanks so much! It did finally dawn on me (having not worked with bezier curves in houdini before) that the bezier handles were just points that i could move around after the curve to change the interpolation, but i struggled to understand how to go about inputting the generated polyline into the curve sop, i guess i just need to learn a bit more about hot to create and work with bezier curves.


Failing that i can maunally create the curve i want in the curve sop and then derive the desired tangents from the input geometry normals etc and channel reference those points to the relevant positions in a point wrangle afterwards.

I'll look into those other nodes you mentioned as well.

Thanks again!
  • Quick Links