matrices ?

Started by
3 comments, last by bilsa 20 years, 11 months ago
Hello! I am wondering if there is any "default" value that I can set my matrices to? Something like the common "NULL". something like this: matRotX = NULL; //something like that Well, while I'm at it. If I would like to set the value of my World matrix to one of my Rotation matrices, how would I do that? (my world matrice has gotten no value yet, so I can only put it as the Result matix in the MatrixMultiply() call) something like this: marWorld = matRotX; //something like that One more thing... Do the MatrixMultiply() and MatrixTranslation() calls slow my app down very much or am I only to worry about the SetTransform() calls?? thx! [edited by - bilsa on May 7, 2003 10:56:01 AM] [edited by - bilsa on May 7, 2003 10:56:30 AM] [edited by - bilsa on May 7, 2003 10:59:47 AM]
Advertisement
why don''t you use D3DXMatrixIdentity(&matWorld)?
it''s like a "default"...
How appropriate, you fight like a cow!
yeah, it (identity) sets the matrix to:

[ 1 0 0 0 ]
[ 0 1 0 0 ]
[ 0 0 1 0 ]
[ 0 0 0 1 ]

this is what a (3d) matrix should look like before adding transformations.
Ok, thx!
Ok, thx!

This topic is closed to new replies.

Advertisement