Jump to content
  • Advertisement
Sign in to follow this  

Camera matrix Question

This topic is 3885 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 am a self learner. I don't know not much people to ask for a help. So Posting here..) I did a camera system in opengl and working fine.. user can rotate the scene around all axis and can move through world. So after completing this , i played some computer games. that caused me to think again more about my camera. The problem is scenario is this . In my world user can rotate camera around x axis and can see the up and down part. ok fine. so after this if he rotate the camera in y axis the world rotates , but the x' rotation does not reflects in the y rotation. so the total effect is gradually the x rotation (up/down) results to zero after rotating 90. I know this happens , because i am rotating camera around the rotated y axis. may be i can correct it like every time first rotate in y , then rotate in X and Z ( again here which is first X or Z) ?. I need a common solution. all thoughts are welcome. Please tell me if you are unclear.

Share this post

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