Jump to content
  • Advertisement


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


Jim Adam's RPG Book cCamera Question

This topic is 5885 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
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.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!