Jump to content
  • Advertisement
Sign in to follow this  

Object rotates when modelview matrix rotates instead of world

This topic is 3352 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

Hello. I'm rather new at this. I just created a matrix class and a function to rotate it given input x,y,z angles. To render the scene I have been loading my camera coordinate matrix into the modelview matrix (inverting all translational coordinates). The rotation part seems to be working right (I check the matrix numbers) and moving the camera with the translational coordinates works. The strange thing is that when I try to rotate the camera, the points I have made all rotate around the original origin, rather than the camera. Am I loading the matrix wrong? Thanks

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!