This topic is now archived and is closed to further replies.


D3DXMatrixLookAtLH - I Will go nuts!

Recommended Posts

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?   

Share this post

Link to post
Share on other sites