Jim Adam's RPG Book cCamera Question

Started by
1 comment, last by Vampir 21 years, 8 months ago
hi! I have a question about the point method of the cCamera class. Do you i get the same result when i use D3DXMatrixLookAtLH
Advertisement
*push*
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.
Chris Z. GPU FX

This topic is closed to new replies.

Advertisement