Jump to content
  • Advertisement


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


Attn: Chris E.

This topic is 6820 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 have been having lot of problems in get my program to work right due to matrix drift or errors. I,m using the PR_RotateEntity function and passing the rot_mat to the PR_Tranform which is used to transform the forward vector and the up vector for the camera. Here''s the problem chris, when I rotate the camera up and down several times and reposition the camera back to a 0 degree rotation for both x and y. I notice the test entity(earth object) is slightly tilted and offset from the screen. I have even checked the values of the entity rot_mat before rotating and after reseting back to 0 degrees for both x and y rotations, I notice a signicant error. This would account for the camera alignment error. Are you aware of this type of problem where the matrix has a tendency to drift. Is there a recomended way or technique for correcting for matrix drift. Thanks For Time Doug

Share this post

Link to post
Share on other sites
I don''t really follow what you''re doing without seeing the code. If you need to set the absolute rotation of an entity rather than concatenating a rotation, use PR_RotateEntityAbs.

You could also reset the rotation matrix directly using PR_MatrixIdentity.

I have not seen any kind of matrix drift in my 5 years of using PR.

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!