Jump to content
  • Advertisement
Sign in to follow this  
kdworld

Camera rotation question

This topic is 3881 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 Friends, I did a camera system using axis-angle method. Rotating each axis (x,y,z)independently based on the user input and creating a matrix from these axis by inserting axis in each column of the matrix. Rotation of axis are based on user input. No predefined order of rotation. for example if user rotates y first , i rotate the z and x axis based on Y. similarly others also. So now when i use this matrix for transforming the objects to world , it rotates in world coordinates. but what i need is something different. it seems like camera rotates in its local axis and objects rotates in world axis. this is not a first person view what i need. Any idea ? thanks kdworld.

Share this post


Link to post
Share on other sites
Advertisement
Sign in to follow this  

  • 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!