This repository has been archived on 2023-10-09. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
blender-archive/source/blender/blenkernel/intern
Alexander Gavrilov 16eafdadf6 Fix precision issues and a bug in vec_roll_to_mat3_normalized.
When the input vector gets close to -Y, y and theta becomes totally
unreliable. It is thus necessary to compute the result in a different
way based on x and z. The code already had a special case, but:

- The threshold for using the special case was way too low.
- The special case was not precise enough to extend the threshold.
- The special case math had a sign error, resulting in a jump.

This adds tests for the computation precision and fixes the issues
by adjusting the threshold, and replacing the special case with one
based on a quadratic Taylor expansion of sqrt instead of linear.

Replacing the special case fixes the bug and results in a compatibility
break, requiring versioning for the roll of affected bones.

Differential Revision: https://developer.blender.org/D9551
2021-10-20 12:58:19 +03:00
..
2021-07-13 20:51:24 +10:00
2021-10-18 12:13:10 +11:00
2021-09-24 11:31:23 +10:00
2021-10-20 11:16:43 +11:00
2021-05-25 17:16:54 +02:00
2021-10-18 12:13:10 +11:00
2021-08-06 14:24:16 +10:00
2021-10-12 17:55:02 +11:00
2021-07-07 13:42:46 +10:00
2021-10-12 17:55:02 +11:00
2021-10-20 11:16:43 +11:00
2021-08-06 14:24:16 +10:00
2021-10-20 11:16:43 +11:00
2021-10-06 14:54:05 +11:00
2021-10-20 11:16:43 +11:00
2021-09-23 15:42:44 +10:00
2021-09-17 08:08:56 -07:00
2021-10-04 13:15:15 +11:00
2021-08-19 19:27:49 -07:00
2021-09-24 11:31:23 +10:00
2021-10-03 12:13:29 +11:00
2021-06-18 14:41:24 +10:00
2021-07-29 10:52:08 +10:00
2021-10-19 18:35:39 +11:00
2021-10-06 14:54:05 +11:00
2021-10-20 11:16:43 +11:00
2021-07-08 13:31:38 +10:00
2021-06-16 16:14:02 +02:00
2021-09-23 22:08:02 +10:00
2021-09-29 07:30:34 +10:00
2021-10-20 11:16:43 +11:00
2021-10-20 11:16:43 +11:00
2021-10-03 12:13:29 +11:00
2021-10-18 12:13:10 +11:00
2021-09-22 16:55:09 +02:00
2021-10-18 12:13:10 +11:00
2021-10-03 12:13:29 +11:00
2021-10-18 12:13:10 +11:00
2021-08-27 17:02:53 +10:00
2021-10-06 14:54:05 +11:00