Jump to content
  • Advertisement

Archived

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

Fragmo

converting world matrix to view matrix?

This topic is 5905 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''m trying to attach a camera to an object that has a matrix defining its orientation in space. i use the inverse of that object''s world matrix as the view matrix, but the side effect here is that when i rotate the object there is a roll component being added to the view that shouldn''t be there. how do i fix this, or is there a better way to do it? i require 6 degrees of freedom so i''d like to avoid euler angles and gimble lock hell. i''ve also tried quaternions, but unless i''m doing something wrong they exhibited the same behavior, inverse yields annoying roll. PLEASE HELP!!

Share this post


Link to post
Share on other sites
Advertisement

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