Hello, i am having problems trying to understand how can i use quaternions to rotate my models, i know they are better than anything else so i want to use them to rotate things in complex ways, but i cant figure out how to do it.
Also, while i was searching for quaternions info, i found out that matrix are also used to rotate stuff but i also have problems with that.
Could anyone make my learning process easier and post some simple code with simple explanations so i understand how to use both?.
Thanks a lot in advance.
Quaternions and Matrices.
As far as I know, internally irrlicht only uses quaternions for interpolating skeletal animations. It uses matrices for scene node transforms. Quaternions are better for rotations, as they don't suffer from gimbal lock, but IMHO matrices are much easier to use and one really doesn't need a knowledge of quaternions to use irrlicht.
Information about matrices and quaternions
http://www.j3d.org/matrix_faq/matrfaq_latest.html
Information about matrices and quaternions
http://www.j3d.org/matrix_faq/matrfaq_latest.html
You do a lot of programming? Really? I try to get some in, but the debugging keeps me pretty busy.
Crucible of Stars
Crucible of Stars
Yes, i have readed that link allready, it doesnt help me much because i know what a matrix is, but i cant figure out how to use it in rotations in irrlicht, because, it appears to be more complicated that using setRotation(vector); if i use a matrix i would have to use sin, cos, and for me that is much more complicated, besides, i dont know how to set the rotation of a node with a matrix, how is that done?.
I was trying to find another way to set rotation that manually using setRotation() because it was getting complicated, and i found matrices to be even more complicated to use according to the sites i have seen (a lot) because they show things i really dont need to know, i just want to know how to use them to make my life easier.
So, matrix are nice or evil?.
I was trying to find another way to set rotation that manually using setRotation() because it was getting complicated, and i found matrices to be even more complicated to use according to the sites i have seen (a lot) because they show things i really dont need to know, i just want to know how to use them to make my life easier.
So, matrix are nice or evil?.
to use matrices is not that complicated once you understant basics.
You may look here for some example:
http://irrlicht.sourceforge.net/phpBB2/ ... php?t=2528
You may look here for some example:
http://irrlicht.sourceforge.net/phpBB2/ ... php?t=2528