Blender Git Loki

Git Commits -> Revision 51c8a6f

Revision 51c8a6f by Alexander Gavrilov (master)
April 13, 2019, 13:27 (GMT)
Fix T37500: implement Bendy bone segment deformation interpolation.

Previously B-Bone deformation mapped every vertex to just one
B-Bone segment. This results in abrupt transformation differences
between the sides of each threshold plane, reducing the quality
of B-Bone deformation and making the use of shape keys impractical.

This commit replaces this approach with a linear blend between
the two closest segment transformations, effectively representing
the B-Bone as two weight-blended plain bones for each vertex.

In order to distribute the interpolation more evenly along the
bone, segment matrices for deformation are now computed at points
between the segments and at the ends of the B-Bone. The computation
also uses the true tangents of the Bezier curve for the orientation.
The nodes at the end of the bone require some special handling to
deal with zero-length Bezier handles caused by a zero ease value.

The Copy Transforms constraint now also smoothly interpolates
rotation and scaling along the bone shape when enabled.

The initial version of the patch was submitted by @Sam200.

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

Commit Details:

Full Hash: 51c8a6f491d3b21a6c91af6267f58d4f0add58af
Parent Commit: f7e35d6
Lines Changed: +297, -259

10 Modified Paths:

/source/blender/blenkernel/BKE_armature.h (+4, -2) (Diff)
/source/blender/blenkernel/intern/armature.c (+218, -170) (Diff)
/source/blender/blenkernel/intern/constraint.c (+43, -63) (Diff)
/source/blender/blenlib/BLI_math_matrix.h (+3, -0) (Diff)
/source/blender/blenlib/intern/math_matrix.c (+22, -0) (Diff)
/source/blender/draw/intern/draw_armature.c (+2, -7) (Diff)
/source/blender/editors/armature/armature_skinning.c (+1, -1) (Diff)
/source/blender/editors/gpencil/gpencil_armature.c (+1, -1) (Diff)
/source/blender/makesrna/intern/rna_pose_api.c (+3, -3) (Diff)
/source/blender/physics/intern/implicit_blender.c (+0, -12) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021