Blender Git Loki

Kaikki Blender Git kommitit.

Page: 4408 / 8462

May 17, 2016, 14:28 (GMT)
Bendy Bones: Code Cleanup/Scaling Fix

* Changed num_segments from n - 1 to just n. Previously, it ended up just looking
odd, as everything would change, up till but not including the last one, when
playing with the "scale in" setting.

* Removed the before calculating scaleFactorIn/Out - these were always true!
May 17, 2016, 14:28 (GMT)
Bendy Bones: Code Cleanup - More steps to simplify + clarify the scaling code
May 17, 2016, 14:28 (GMT)
Bendy Bones: Code Cleanup - Simplify float conversions here to be easier to follow
May 17, 2016, 14:28 (GMT)
Bendy Bones: Fix behaviour of scale in/out in editmode preview too
May 17, 2016, 14:28 (GMT)
Bendy Bones: Remove all the remaining BBone options from the Deform panel

These are no longer deform-only, as a non-deform bone could be used for
controlling constraints.
May 17, 2016, 14:28 (GMT)
Bendy Bones: Copy/Paste pose now copies these settings over to

Copying poses now copies the bendy bone settings (posebone not bone ones).
By and large this should work fine now, though the behaviour for "paste flipped"
might need further checking.
May 17, 2016, 14:28 (GMT)
Bendy Bones: Tweak to try and get rid of shearing issues when scaling bones

Looks like we shouldn't be applying the inverse matrix here...
May 17, 2016, 14:28 (GMT)
Constraints: BBones Head/Tail Interpolation is now optional

To preserve backwards compat with old rigs, the behaviour to use the BBone
shape when interpolating Head/Tail values will now only be performed when
the "curve" toggle beside the head/tail slider is enabled.

TODO: Make this toggle only show up when the target is actually a bbone
May 17, 2016, 14:28 (GMT)
Fix for Constraints Head/Tail on BBones

Last segment needs special handling, as the values there are a little wonky...
May 17, 2016, 14:28 (GMT)
Constraints: Head/Tail interpolation follows bbone shape, instead of doing straight-line interpolation

This can be used to reduce the complexity of rigs, by reducing the number of extra bones
that may have otherwise been needed to accomplish a similar effect.
May 17, 2016, 14:28 (GMT)
Bendy Bones: Fix - Scale In/Out not being initialised for new pose bones
May 17, 2016, 14:28 (GMT)
Bendy Bones: Tweaks to UI layout for Bendy Bones panel

* Disable all properties if no segments
* Better labels and spacing of items
* Changed order of things to have a better layout
* Moved "inherit endroll" option into this panel too
May 17, 2016, 14:28 (GMT)
Bendy Bones: Code Cleanup - Expose equalize_bezier() as equalize_bbone_bezier()
May 17, 2016, 14:28 (GMT)
Bendy Bones: Curved Bone settings in EditMode act as "Rest Pose" (Experimental)

The bendy bone settings (curve in/out, etc.) now exist on both Bone and PoseBone
levels. What this means is that the "Bone" level settings (i.e. what we had before)
are used for defining the rest pose curve for the bone (i.e. to fit things like
curved eyebrows, and so forth), while the "PoseBone" level settings (i.e. new stuff)
will be what animators play with to animate their characters.


Implementation Notes:
* All the BBone settings are now found in a new "Curved Bones" panel. This is located
just below the Transform properties panels (instead of by "Deform"), so that it's
easier to reach for animating.

The segments and ease in+out settings are still also located in the "Deform" panel.
I'm still unsure whether to remove them for good from there. For now, I've duplicated
them, to be more convenient for animation tweaking (though it might also be a bit
confusing)

* Ease In/Out is still a bone-level setting only (i.e. no posemode offsets/override).
This may be subject to change still, but more investigation will be needed first.

* Scale In/Out is handled multiplicatively. That is,
scaleIn_final = bone->scaleIn * pbone->scaleIn

* I've added a hacky "stripped down" copy of b_bone_spline_setup() for drawing
the editmode previews of these bbone settings. Whether this is the final approach
used is still open to debate. Better suggestions welcome, though this seems to be
the simplest (least overhead) solution currently.
May 17, 2016, 14:28 (GMT)
Bendy Bones: Fix tooltip for "Inherit End Roll" to be a bit more descriptive
May 17, 2016, 14:28 (GMT)
Bendy Bones: Restore bone->ease1/2 for hlength1/2 calcs

It turns out that this wasn't changed in the patch after all...
May 17, 2016, 14:28 (GMT)
Bendy Bones: Fix for crash when enabling "Inherit EndRoll"
May 17, 2016, 14:28 (GMT)
Bendy Bones: Code Cleanup - Remove all the unnecessary prints + debug code leftover
May 17, 2016, 14:28 (GMT)
Bendy Bones: At last, it works!

I've gone through making a bunch of changes (mostly, just reverting quite a few
things back to their pre-patch state, and adding in a few other bits), and it
finally looks like it actually works for both BlenRig and the test files. Yay!

(Things are still quite messy, with a lot of commented out leftovers and stuff
to deal with, which I'll clean up in a moment after verifying that it all actually
works for real)
May 17, 2016, 14:28 (GMT)
BendyBones WIP - Temporarily knocked out change to the matrix multiplication final step

If we use the old formula (currently enabled), old rigs work, but new options don't.

However, if we use the new one (without tmat == inverse mats[0]), old rigs
(blenrig) breaks, while the new options don't really work that great.
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021