Flint Particle System Forum - Quaternion to Matrix3D conversion bug? 2011-12-12T21:11:14+00:00 http://flintparticles.org/forum/ Lussumo Vanilla & Feed Publisher Quaternion to Matrix3D conversion bug? http://flintparticles.org/forum/comments.php?DiscussionID=278&Focus=978#Comment_978 2009-11-18T23:50:19+00:00 2009-11-18T23:55:03+00:00 saqoosha http://flintparticles.org/forum/account.php?u=272 This code from line 482 of Quaternion.as return new Matrix3D( [ 1 - 2 * ( yy + zz ), 2 * ( xy - wz ), 2 * ( xz + wy ), 0, 2 * ( xy + wz ), 1 - 2 * ( xx - zz ), 2 * ( yz - wx ), ... line 482 of Quaternion.as

return new Matrix3D( [
1 - 2 * ( yy + zz ), 2 * ( xy - wz ), 2 * ( xz + wy ), 0,
2 * ( xy + wz ), 1 - 2 * ( xx - zz ), 2 * ( yz - wx ), 0,
2 * ( xz - wy ), 2 * ( yz + wx ), 1 - 2 * ( xx - yy ), 0,
0, 0, 0, 1
] );

should be

return new Matrix3D( [
1 - 2 * ( yy + zz ), 2 * ( xy - wz ), 2 * ( xz + wy ), 0,
2 * ( xy + wz ), 1 - 2 * ( xx + zz ), 2 * ( yz - wx ), 0,
2 * ( xz - wy ), 2 * ( yz + wx ), 1 - 2 * ( xx + yy ), 0,
0, 0, 0, 1
] );
]]>
Quaternion to Matrix3D conversion bug? http://flintparticles.org/forum/comments.php?DiscussionID=278&Focus=995#Comment_995 2009-12-04T07:44:00+00:00 2011-12-12T21:11:14+00:00 Richard http://flintparticles.org/forum/account.php?u=1 Thank you for the bug report and fix. I'll include it in the next release.