Archived

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

Vampir

Jim Adam's RPG Book cCamera Question

Recommended Posts

D3DXMatrixLookAtLH(...) is similar to what Jim describes in his book but they aren''t exactly the same. Jim doesn''t have you give the up vector in his Point method so when you use Point() as opposed to D3DXMatrixLookAtLH() the camera will not change its up axis orientation. You would need to Rotate() the camera if you wanted it to roll.

You would get the same results using D3DXMatrixLookAtLH() if the up vector you used was the same as you camera''s current up vector.

Chris Z.

Share this post


Link to post
Share on other sites