Jump to content
  • Advertisement


This topic is now archived and is closed to further replies.


Rotation matrix problem

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

I''ve got a class that does 4x4 matrices, and can multiply vertices by matrix''s. I set a Z rotation matrix, with an angle of 22.5 * i. i is the row of my skydome with 0 being the zenith, and 4 being the horizon. My problem is that the horizon is not exactly where it should be. The horizon should be a y = 0. Here''s an output of my coordinates. 0, 100, 0 -37.4607, 92.7184, 0 -69.4658, 71.934, 0 -91.3545, 40.6737, 0 -99.9391, 3.48995, 0 My plan is to then use a Y rotation matrix to rotate vertices around each row. How can I get the Y of my horizon to be right at 0? It should basically be 100, 0, 0. I can post code if necessary, but please tell me what code to paste. Thanks, David

Share this post

Link to post
Share on other sites

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