Arguments for and against Vector/Quaternion combo verses a Matrix

Started by
3 comments, last by swiftcoder 15 years, 5 months ago
Hi, I'm looking some advice planning a rewrite of my Geometry class. Previously I've delved into the world of three Vectors for position, scale and a euler. I abandonned the euler after many fights with it and started using Quaternions. Functions like slerp were fast becoming advantageous and I planned to use a Vector/Quaterion combo once again through the rewrite. I'd like to know if anyone has any testimonials for using two Vectors and Quaternion, verses just having a Matrix. I would plan for it to be a well-written Matrix4 class, which will include functions like LookAt, linear Lerp and rotational Slerp. Can anyone forsee any difficulties I might run into with either method? [Edited by - deadstar on November 12, 2008 7:04:39 PM]

"The right, man, in the wrong, place, can make all the dif-fer-rence in the world..." - GMan, Half-Life 2

A blog of my SEGA Megadrive development adventures: http://www.bigevilcorporation.co.uk

Advertisement
Did your post get lost? Or are you just looking for 'arguments for and against vector/quaternion combo verses a matrix'?
As a starter in computer animation I am interested in this topic too =)
Fixed, thank hell it was still in my clipboard!

Got one o' those ASP errors after I clicked submit.

"The right, man, in the wrong, place, can make all the dif-fer-rence in the world..." - GMan, Half-Life 2

A blog of my SEGA Megadrive development adventures: http://www.bigevilcorporation.co.uk

Quote:Original post by deadstar
Got one o' those ASP errors after I clicked submit.
<offtopic> Those are getting on my nerves - about one every three post lately. </offtopic>

Back to the question at hand, I find myself using both, largely out of habit. I started out using vector+quaternion, and shortly discovered I had to manipulate my own matrices for OpenGL, so I ended up caching a matrix at every scene node as well. Unfortunately, the vector+quaternion doesn't offer a whole lot over the matrix, and keeping both is pretty ridiculous, so I think my next rewrite will be to make everything work with just the matrix.

Tristam MacDonald. Ex-BigTech Software Engineer. Future farmer. [https://trist.am]

This topic is closed to new replies.

Advertisement