quaternions and matrices

Started by raft, February 03, 2010, 08:29:46 AM

Previous topic - Next topic

raft

for 2 rotations R1 and R2, let Q1 and Q2 quaternion representations and M1 and M2 matrix representations of these rotations. M1 and M2 are row major matrices like jPCT's

does Q1xQ2 represent the same rotation with M1xM2 ?

EgonOlsen

I don't really know, but i would expect it.

raft

yes they seem they are. there was a typo in my ported quaternion which caused me almost gone mad ::)

EgonOlsen


.jayderyu

Only when your familiar with the process. Otherwise it's a major pain in the @$$.

I remember working with Quaternion before. Just glad that jBullet used 3x3 matrices and JPCT matrice while 4x4 seem to work on 3x3 :P

raft