Archived

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

penetrator

Quaternion rotation

Recommended Posts

ThamasTah    122
What do you want to use the quaternions for? I''d like to point you to an article by Diana WhatsHerName on GameDev.net (perhaps search on qauternions...) in which she quite convincingly decourages you to use quaternions of there isn''t a VERY valid reason to do so...
Hope to help...

Share this post


Link to post
Share on other sites
penetrator    122
i''m building a flight sim and have to rotate the aircraft around 3 axis ... therefore, if i wanna avoid the gimbal lock, i was told to use quaternions !

Share this post


Link to post
Share on other sites
IceWizard    122
Try looking at these sites:

http://www.flipcode.com/documents/matrfaq.html
http://wwwgamedev.net/reference/articles/article1095.asp
http://nearfield.com/~dan/Quater/QUATER.htm

By the way, have you coded the conversion from euler/matrix to quaternion yet? If not, then see this site:

http://gypsy.rose.utoronto.ca/people/david_dir/GEMS/GEMS.html

Share this post


Link to post
Share on other sites
Khrob    122
Diana Gruber.

Read that article ages ago... still in the dark myself as to quarternions, but she made some good points. (and she''s been on the scene for quite a long time)

happy coding



I used to be indecisive. Now I''m not so sure...

Share this post


Link to post
Share on other sites
penetrator    122
ok guys, but every tutorial/article about quaternions is a mess, or it shows only the theory or only the code with no explanation at all ! i just would like to understand or get some code about a simple object rotating around the 3 axis using quaternions, something that starts from the beginning and end with the complete operation, i.e. the 3 angles of rotation... so far i couldn''t find such an article, and i''m very surprised nobody did one yet... perhaps quternions are a complicate subject

Share this post


Link to post
Share on other sites
Guest Anonymous Poster   
Guest Anonymous Poster
what exactly are quaternions?

(Im not exactly in linear algebra yet so I dont know much about advaced matrices yet )... (sorry, newbie).

Share this post


Link to post
Share on other sites
IceWizard    122
Quaternions is a different form for representing an angle of rotation. You may have already heard of other ways of representing an angle of rotation such as Euler angles and the famous transformation matrix.

Share this post


Link to post
Share on other sites
avianRR    100
The most usefull link I''ve found so far for explaining what Quaternions are and how they work is...

http://www.gamedev.net/reference/programming/features/qpowers/

However I have yet to find any programs showing an example of how they work. I use them myself even though I don''t understand them. Despite what others say Quaternions are very usefull and they work great! However, if another simpler solution will work just as good use that solution.

Share this post


Link to post
Share on other sites