D3DXMatrixLookAtLH - I Will go nuts!

Started by
1 comment, last by Darwishi 20 years, 5 months ago
Hi! I having som serius problems D3DMatrixLookAtLH... I just can''t set the view correctly, i have been trying to get the view correctly for 12 hours. All i want is to get the "map" in the center (rotated 45 degrees), and the view should be top-down...

mvarCameraLocation = MakeVec3(40, 40, 0)
mvarAngle = 45
mvarDistance = 4
mvarCameraTo.X = mvarCameraLocation.X - ((UnitCircle(mvarAngle).X) * mvarDistance)
mvarCameraTo.Y = mvarCameraLocation.Y - ((UnitCircle(mvarAngle).Y) * mvarDistance)
And i draw Y=Y, X=X and not Y=Z. Does anyone have a clue?
Advertisement
I''m not sure as I am a newbie DX programmer, but I think maybe the problem is that you are using angle measurements in degrees. Try and use radians instead it should work I guess.
Keep coding..
I don''t see any D3DXMatrixLookAtLH in the code...

Muhammad Haggag

This topic is closed to new replies.

Advertisement