Archived

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

HalfLucifer

Again MD3 problem.... about using quaternion

Recommended Posts

I got the MD3 loading program from Lonerunner. I''m wondering one thing in his code: What''s the reason he use "quarternion" to handle(view) the model instead of using traditional matrix manipulation? Are there any advantage to do that? Or some other purpose? I would like to know the reasons before I use it.....

Share this post


Link to post
Share on other sites
Quaternions have an x,y,z and w component where as a matrix (for 3d rotation) has 9 elements.

there for multiplying 2 quats yields 8 operations where as multiplying 2 mats yields 18.

Not only that once you get used to quats they are very elegant and very powerful.

I slaved for a couple of weeks to get used to them and I havn''t looked back since.



D.V.

Share this post


Link to post
Share on other sites