Jump to content
  • Advertisement

Archived

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

Vampir

Jim Adam's RPG Book cCamera Question

This topic is 5787 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

hi! I have a question about the point method of the cCamera class. Do you i get the same result when i use D3DXMatrixLookAtLH

Share this post


Link to post
Share on other sites
Advertisement
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

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!