Hi anyone:
Does any idea for the quaternions.
quaternions
-
- Posts: 271
- Joined: Sat Aug 23, 2003 5:52 pm
- Location: Hurricane Central, Florida
quaternions
Thanks saigumi for the great document.
Sorry for my question. I mean that the Niko to implement the quaternions ?
sorry for my english.
Sorry for my question. I mean that the Niko to implement the quaternions ?
sorry for my english.
In a way, they are already in there, you can use matrices and matrix transformation (quaternions).
The premise for a good portion of Irrlicht is to make it so that you don't have to worry about quaternions or matrices and can think about 3d in more simpler terms of rotation angles and direct X/Y/Z positioning.
If you really feel the need to get low level and make your own matrices, http://irrlicht.sourceforge.net/docu/cl ... trix4.html.
The premise for a good portion of Irrlicht is to make it so that you don't have to worry about quaternions or matrices and can think about 3d in more simpler terms of rotation angles and direct X/Y/Z positioning.
If you really feel the need to get low level and make your own matrices, http://irrlicht.sourceforge.net/docu/cl ... trix4.html.
Crud, how do I do this again?
-
- Posts: 271
- Joined: Sat Aug 23, 2003 5:52 pm
- Location: Hurricane Central, Florida
Just to get my 2 cents in... the quaternions aren't already in the engine and it would be cool if Niko did implement them but I don't know of any plans to do so. Quaternions can be used as a replacement for rotation matrices as they can describe a rotation around any axis in 3D space. They take up less space than matrices (4 numbers instead of 9), many operations such as multiplication are cheaper than with matrices, and conversion between quaternions and matrices is easy.
-
- Posts: 271
- Joined: Sat Aug 23, 2003 5:52 pm
- Location: Hurricane Central, Florida
I made the following class for the GTEngine, but if you'd like feel free to adapt it to the IrrLicht Engine:
http://skyesurfer.net/keless/download/Quaternion.h
http://skyesurfer.net/keless/download/Quaternion.cpp
http://skyesurfer.net/keless/download/Quaternion.h
http://skyesurfer.net/keless/download/Quaternion.cpp