Jump to content
  • Advertisement
Sign in to follow this  
kdworld

Camera rotation question

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

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!