Blender Git Commit Log

Git Commits -> Revision 8bdc391

Revision 8bdc391 by Alexander Gavrilov (master)
November 1, 2017, 18:57 (GMT)
Implement a new automatic handle algorithm to produce smooth F-Curves.

The legacy algorithm only considers two adjacent points when computing
the bezier handles, which cannot produce satisfactory results. Animators
are often forced to manually adjust all curves.

The new approach instead solves a system of equations to trace a cubic spline
with continuous second derivative through the whole segment of auto points,
delimited at ends by keyframes with handles set by other requirements.

This algorithm also adjusts Vector handles that face ordinary bezier keyframes
to achieve zero acceleration at the Vector keyframe, instead of simply pointing
it at the adjacent point.

Original idea and implementation by Benoit Bolsee <[email protected]>;
code mostly rewritten to improve code clarity and extensibility.

Reviewers: aligorith

Differential Revision: https://developer.blender.org/D2884

Commit Details:

Full Hash: 8bdc391c5488228dfe9c9e995277d67558293f08
Parent Commit: 88356a2
Lines Changed: +736, -18

14 Modified Paths:

/source/blender/blenkernel/BKE_curve.h (+3, -1) (Diff)
/source/blender/blenkernel/intern/curve.c (+559, -10) (Diff)
/source/blender/blenkernel/intern/fcurve.c (+20, -1) (Diff)
/source/blender/blenkernel/intern/mask.c (+3, -3) (Diff)
/source/blender/blenkernel/intern/nla.c (+2, -0) (Diff)
/source/blender/blenlib/BLI_math_solvers.h (+5, -0) (Diff)
/source/blender/blenlib/intern/math_solvers.c (+108, -0) (Diff)
/source/blender/editors/animation/drivers.c (+1, -0) (Diff)
/source/blender/editors/animation/keyframing.c (+1, -0) (Diff)
/source/blender/editors/curve/editcurve.c (+1, -1) (Diff)
/source/blender/editors/space_graph/graph_buttons.c (+6, -1) (Diff)
/source/blender/makesdna/DNA_anim_types.h (+9, -0) (Diff)
/source/blender/makesdna/DNA_curve_types.h (+8, -1) (Diff)
/source/blender/makesrna/intern/rna_fcurve.c (+10, -0) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021