Jump to content
  • Advertisement
Sign in to follow this  
kdworld

Camera matrix Question

This topic is 3968 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
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!