Any good cubic bezier spline editor that can export raw control points? I want to be able to define curves for data and possibly use THREE.CubicBezierCurve(s) (or write my own) to process them.
I’m looking for something like Blender’s Graph Editor, or Unity’s curve editor that allows you to create a cubic bezier spline (multiple cubic bezier curves pieced together). But one that can export the control points (unsampled) directly.
I’ve seen https://cubic-bezier.com/ already, its a great tool, but its only useful for a single bezier curve, not a spline.
EDIT: To clarify, I’m looking for a 2D editor, like the kind of animation curve editor you would find in game engines or rendering engines (see references)
Thanks for the response, I should have mentioned that its a 2D editor I’m looking for (see references). It looks like it would be a lot of work to extend that 3D catmull spline editor to a 2D bezier animation curve editor.
Been searching around for some more solutions and I’m thinking the best solution might be to use Blender’s Graph Editor to create the curves and write a Blender add-on to export the raw control points instead.
2D is very simple to make with a canvas, you can literally just use points you pass through bezierCurveTo. That is quiet less effort than writing a blender plugin, but you know best what you need.
Ah yeah, that looks like a great tool. It seems to be a pain UI-wise compared to Blender’s editor (need to specify starting points manually instead of clicking at a location) but maybe with a bit more work it can be enough for what I need. Thanks again!
Yeah it’s just a fiddle, i’d always go with a canvas implementation since you have more easier control over automation. And it’s really not much work, i’ve implemented bezier editors several times just as they mostly have a specific use case, recent one was for facial morph animations for my game.
For basic path data you don’t need to calculate anything, just apoints to add and remove, maybe automatically mirror tangent points only break with holding shift for example.
And yeah agreed, it definitely would be better in the long run to make a custom bezier editor. I’ll keep this thread updated with the solution I end up going with
My hack was to export the curve directly into a THREE.SplineCurve constructor, and also set up the initial spline so that it is more useful for creating easing curves (ranged 0-1 & linear to begin with).