#### Archived

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)
[/CODE]

And i draw Y=Y, X=X and not Y=Z.

Does anyone have a clue?   

##### Share on other sites
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.

##### Share on other sites
I don''t see any D3DXMatrixLookAtLH in the code...

• ### Forum Statistics

• Total Topics
628308
• Total Posts
2981974

• 9
• 13
• 11
• 12
• 11