Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Animating rod rest position
#4
(04-05-2021, 06:12 AM)Hakazaba Wrote: Thank you for the help. Is there any existing code in obi for converting a quaternion(rotation of a joint of an animated rig) into a Darboux vector?

You have ObiUtils.RestDarboux(Quaternion q1, Quaternion q2). It takes two rotation quaternions as input, and outputs the Darboux vector that describes the change in curvature and torsion from q1 to q2. So you can take one joint as q2, its parent as q1, pass them to this function and you will get a Darboux vector.

(04-05-2021, 06:12 AM)Hakazaba Wrote: Also out of curiosity, what is the point of having a rest position with rotational velocity? doesn't a rest position always have no rotational velocity?

A rod is basically a curve, right? On a curve, you can define a orthonormal frame (3 unit vectors orthogonal to each other) at any point:
- A vector that's tangent to the curve, pointing to the "direction" of the curve (tangent vector)
- A vector pointing "inside" or "outside" the curve (normal vector)
- A vector orthogonal to the other 2 (binormal vector)

This is known as the Frenet-Serret frame. If you want to describe how the shape of the curve changes between two points, you need to somehow compare two Frenet frames. This is where the Darboux vector comes into play.

Back to your original question: The Darboux vector determines the frame's change in curvature and torsion between two points. Both curvature and torsion are rotations (curvature is rotation around the normal/binormal frame vectors, and torsion is rotation around the tangent vector), so the Darboux vector is directly proportional to the curve's angular momentum. That's why it can be understood as an angular velocity vector.
Reply


Messages In This Thread
Animating rod rest position - by Hakazaba - 02-05-2021, 02:47 PM
RE: Animating rod rest position - by josemendez - 03-05-2021, 11:05 AM
RE: Animating rod rest position - by Hakazaba - 04-05-2021, 06:12 AM
RE: Animating rod rest position - by josemendez - 04-05-2021, 08:12 AM
RE: Animating rod rest position - by Hakazaba - 04-05-2021, 12:55 PM
RE: Animating rod rest position - by Hakazaba - 05-05-2021, 12:53 AM
RE: Animating rod rest position - by josemendez - 05-05-2021, 09:08 AM
RE: Animating rod rest position - by Hakazaba - 05-05-2021, 06:28 AM
RE: Animating rod rest position - by josemendez - 05-05-2021, 08:10 AM
RE: Animating rod rest position - by Hakazaba - 05-05-2021, 11:54 AM
RE: Animating rod rest position - by josemendez - 05-05-2021, 02:06 PM
RE: Animating rod rest position - by Hakazaba - 05-05-2021, 04:01 PM
RE: Animating rod rest position - by josemendez - 05-05-2021, 05:18 PM
RE: Animating rod rest position - by Hakazaba - 06-05-2021, 04:53 AM
RE: Animating rod rest position - by josemendez - 06-05-2021, 07:38 AM
RE: Animating rod rest position - by Hakazaba - 06-05-2021, 09:12 AM
RE: Animating rod rest position - by josemendez - 06-05-2021, 09:46 AM
RE: Animating rod rest position - by Hakazaba - 06-05-2021, 02:55 PM
RE: Animating rod rest position - by Hakazaba - 08-05-2021, 01:04 AM
RE: Animating rod rest position - by josemendez - 10-05-2021, 09:11 AM
RE: Animating rod rest position - by Hakazaba - 23-05-2021, 04:27 AM
RE: Animating rod rest position - by josemendez - 24-05-2021, 07:37 AM
RE: Animating rod rest position - by Hakazaba - 31-05-2021, 06:53 AM
RE: Animating rod rest position - by josemendez - 31-05-2021, 07:45 AM
RE: Animating rod rest position - by Hakazaba - 01-06-2021, 03:30 AM
RE: Animating rod rest position - by josemendez - 01-06-2021, 07:50 AM
RE: Animating rod rest position - by Hakazaba - 02-06-2021, 05:55 AM
RE: Animating rod rest position - by josemendez - 02-06-2021, 08:00 AM
RE: Animating rod rest position - by Hakazaba - 10-06-2021, 11:38 AM
RE: Animating rod rest position - by josemendez - 10-06-2021, 11:46 AM
RE: Animating rod rest position - by Hakazaba - 11-06-2021, 04:18 PM
RE: Animating rod rest position - by josemendez - 11-06-2021, 04:35 PM
RE: Animating rod rest position - by Hakazaba - 11-06-2021, 06:54 PM
RE: Animating rod rest position - by josemendez - 14-06-2021, 02:15 PM
RE: Animating rod rest position - by Hakazaba - 16-06-2021, 03:33 PM
RE: Animating rod rest position - by josemendez - 16-06-2021, 04:54 PM
RE: Animating rod rest position - by Hakazaba - 16-06-2021, 11:43 PM
RE: Animating rod rest position - by josemendez - 17-06-2021, 08:14 AM
RE: Animating rod rest position - by Hakazaba - 17-06-2021, 02:08 PM
RE: Animating rod rest position - by Hakazaba - 19-06-2021, 03:30 AM
RE: Animating rod rest position - by josemendez - 20-06-2021, 06:24 PM
RE: Animating rod rest position - by Hakazaba - 21-06-2021, 12:00 AM