Sign in to follow this  
Vexator

(i can't tell you what this is about otherwise you'll skip it ^^)

Recommended Posts

i know this has probably been asked a million times before and most of you will just skip this thread, but i couldn't find an answer in the forums, only dozens of questions and tutorials about quaternions in general. problem: to rotate my quaternion powered camera around the x and y axes, i create quaternions from eulerangles. if i rotate on one axis only, everything is fine, but as soon as i rotate around both axes, the camera also rotates around the z axes, which results in total chaos. why? and how to avoid this? thank you very much!

Share this post


Link to post
Share on other sites
i did and i found dozens of search result pages, but couldn't find the solution. and i know about the advantages of quaternions, that's why i'm using them :)

Share this post


Link to post
Share on other sites
Can you post some code? The behavior you're describing is typical of a 6DOF camera, but not an FPS-style camera. If we can see some code we can probably figure out what you're doing, and why it isn't giving you the results you're after.

Share this post


Link to post
Share on other sites
thank you both, but i found the solution myself - you have to rotate the y axis around the unrotated coordinate system. works fine now :)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this