Spline in Niagara - WIP

This is a work in progress project for implementing curvature logic from Houdini in Niagara Scratchpad and materials.

Ribbon on a spline with curvature.

Ribbon on a spline with curvature.

It is calculating the distance between a point and the position of n+2 point, multiplied with the cross product between the tangent and the up vector. This results in leaning left or right (red/green).

It is calculating the distance between a point and the position of n+2 point, multiplied with the cross product between the tangent and the up vector. This results in leaning left or right (red/green).

Depending on the sign, the direction of the bend can be found, while the dot product between two points returns the exact angle between their tangent vectors.

Depending on the sign, the direction of the bend can be found, while the dot product between two points returns the exact angle between their tangent vectors.

Resample in Scratchpad with orientation.

Resample in Scratchpad with orientation.

Sampling position by U with distance. In the second part, the effect of "Sample Offset Distance" can be noticed, by changing the updating the direction.