2005-04-03から1日間の記事一覧

D3DXMatrixDecompose()

行列を SRT に分けてくれるのだけど、なぜか R (quaternion) の w の値が反転している :( (D3DXMatrixRotationQuaternion() に渡すときに (x,y,z,w) となってほしい値が (x,y,z,-w) となっている)。 とりあえず D3DXQuaternionRotationMatrix() だと (x,y,z,…