Animating BezTube along Bezier Curve
in
Programming Questions
•
2 years ago
I'm developing a project in which I am drawing bezier curves in 3D space. Currently I am animating along these curves using the bezierPoint function to get a number of positions along the curve and then draw vertices at each point. This works great, however now I want to add some varying thickness to the curves. When I change the stroke weight, I notice it varies in quality and style depending on OpenGL implementation. I would like to use actual 3D shapes to draw these curves.
I stumbled across the Shapes3D library and the BezTube class, which seems to be perfect for drawing the curve with actual geometry. However, what I can't seem to find in any examples or documentation is whether I can easily animate the BezTube along the bezier curve (in much the same way that I use bezierPoint to get positions along the curve using a number between 0 and 1) without adjusting the control points along its entire length.
If anyone has experience in this, please let me know.
I stumbled across the Shapes3D library and the BezTube class, which seems to be perfect for drawing the curve with actual geometry. However, what I can't seem to find in any examples or documentation is whether I can easily animate the BezTube along the bezier curve (in much the same way that I use bezierPoint to get positions along the curve using a number between 0 and 1) without adjusting the control points along its entire length.
If anyone has experience in this, please let me know.
1