Original Post
Heyheyhey, I’m trying to make a DirectX demo for my personal use but Ive got stuck on the camera. I’ve followed this tutorial: http://www.toymaker.info/Games/html/camera.html and, although the result rotates (yay), the camera won’t move left, right, up, down or forwards/backwards on its own axis, only the worlds axis. For example, if you rotate 45 degrees to the right and then hit up->forward then you go diagonally forward along the Z axis rather than forward along the x and z axis together (forward movement). The thing is that the source code for the above tutorial works the way I want it to (obviously cus it compiles) but I cant make a working replica of the code in my demo nor copy the bits of the code I want and leave the rest due to the above paragraphs effects. To me the code I have looks like it should work so...I don’t know anymore, any got a clue? =) Link to files: http://siolis.squarespace.com/download/ (Note: The view matrix is processed about 1/2 of the way down the page) It compiles fine and various things happen (the cube translates and rotates, the lights come on and off if you hit O or F etc) if you press 1-9 and hit one of the arrow keys on a querty keyboard. Key 8 and the arrow keys move the cam and key 9 and the arrow keys rotate it. Oh and I’m working in MSVS2008 Express so you will need that to compile. No secrets, copy anything ya like.