question about matrices
If I have a 4x4 translation matrix like this:
float translateMatrix[4][4] = {{ 1.0, 0.0, 0.0, 5.0 },
{ 0.0, 1.0, 0.0, 3.0 },
{ 0.0, 0.0, 1.0, 0.0 },
{ 0.0, 0.0, 0.0, 1.0 }};
What do I do after that. I''m using OpenGL so should I use the MultMatrix function or a for loop? What do I do and how do I do it?
I''m sorry, but I don''t exactly understand your question. Could you rephrase it?
Do you want to multiply this matrix with another?
(ps: I bet more people on this board will be able to answer this )
Do you want to multiply this matrix with another?
(ps: I bet more people on this board will be able to answer this )
I wanna know what I have to do to translate my object using that matrix. p.s. This is my first time using matrices.
glMultMatrixf(translateMatrix);
If you still don''t have a good help reference for OpenGL, you should get one! It''s unmissable. Also some good examples will help you...check out NeHe orso...
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement