[Bf-committers] Matrix "differencing" procedure

Roland Hess bf-committers@blender.org
Sun, 01 Aug 2004 14:01:01 -0400


Almost have my pinbone feature working, and there's one more thing I 
would like some advice on.

I have two 4x4 matrices (MatA, and MatB). I want to find the matrix 
(MatR) that will transform MatA into MatB. Right now, I'm thinking I 
need to do this:

1. Find inverse matrix of MatA (IMatA)
2. Multiply MatB by IMatA, giving MatAB
3. Find inverse of MatAB

The result of step 3 should be what I'm looking for (MatR), right? In 
other words, multiplying MatB with MatR will generate MatA.

Roland Hess - harkyman