I don't know if it will help you, but you might read my Matrix tutorial. It's written for XNA and XNA does a lot of work for setting up you matrices for you. I haven't had to think about manually loading a matrix in a long time.
Here's the tutorial:
http://xna-3d-101.co...s/Matrices.html
It looks like you're working in C++ with DirectX. So, this may not be terribly helpful if you have to load your own matrices.
But Khan Academy has lessons on Matrices.
I swear that I saw a good video on YouTube on the subject of using Matrices in game creation the other day. I thought I book marked it, but apparently I didn't and I can't find it.
For 3D, you are going to be using 4 by 4 matrices.
The camera matrix (called a View Matrix in XNA) should store your camera position and facing.
Hopefully someone else will post something more helpful.
Post Script: Ah HA! I found it. I think this guy does a pretty good job of explaining how matrices are loaded for 3D games.
http://www.youtube.com/watch?v=4aiV5igZwVs&feature=related
Show differencesHistory of post edits
#1XNA-3D-101
Posted 20 June 2012 - 10:13 PM
I don't know if it will help you, but you might read my Matrix tutorial. It's written for XNA and XNA does a lot of work for setting up you matrices for you. I haven't had to think about manually loading a matrix in a long time.
Here's the tutorial:
http://xna-3d-101.com/Fundamentals/Matrices.html
It looks like you're working in C++ with DirectX. So, this may not be terribly helpful if you have to load your own matrices.
But Khan Academy has lessons on Matrices.
I swear that I saw a good video on YouTube on the subject of using Matrices in game creation the other day. I thought I book marked it, but apparently I didn't and I can't find it.
For 3D, you are going to be using 4 by 4 matrices.
The camera matrix (called a View Matrix in XNA) should store your camera position and facing.
Hopefully someone else will post something more helpful.
Here's the tutorial:
http://xna-3d-101.com/Fundamentals/Matrices.html
It looks like you're working in C++ with DirectX. So, this may not be terribly helpful if you have to load your own matrices.
But Khan Academy has lessons on Matrices.
I swear that I saw a good video on YouTube on the subject of using Matrices in game creation the other day. I thought I book marked it, but apparently I didn't and I can't find it.
For 3D, you are going to be using 4 by 4 matrices.
The camera matrix (called a View Matrix in XNA) should store your camera position and facing.
Hopefully someone else will post something more helpful.