Jump to content
  • Advertisement


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


Me, MySelf and Camera!

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

OOPS! The Title! OKE! After struggling for 2 weeks with matrices for implementing a flexible camera system for a third person camera, I decided to use quaternion instead. The thing was, in the case of matrices, my roll wasn''t roll after I do a pitch or yaw or someth''n like that (I guess it''s b''coz of Gimbal Lock!). So after some programming hours, I implemented a quaternion camera system. Now the problem is translation. What I mean is, my roll is roll after howmany ever pitch or yaw etc. But after translation got screwed. i.e camera movement. For example if camera turn left some theta degree and move forward (along Z axis), camera don''t move forward instead camera move sideways. Ya u guess it right, it''s b''coz of translation being applied before rotation. So somebody tell me a method by which I can have a VECTOR storing the position of camera and a quaternion stores the orietation information. I need HELP!! Thank You in ADVANCE! There is no problem so complicated that it cannot be complicated further.

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.

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!