Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Geek Culture / Rotation Matrices?

Author
Message
Neuro Fuzzy
17
Years of Service
User Offline
Joined: 11th Jun 2007
Location:
Posted: 8th Aug 2009 10:52
I've recently learned how to preform matrix operations, for the sole purpose of learning about rotation matrices. Now that i have basic matrix operations (multiply, add, subtract, identity matrices, row operations, etc) down, i want to tackle rotation.

Unfortunately, the only rotation matrix lessons i can find online are for people who already know what a rotation matrix is...

I kind of get the gist of rotation matrices, but not nearly enough to actually use them. Does anyone know of a good tutorial online (or can anyone answer what i need to know) about rotation matrices?
Phaelax
DBPro Master
22
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 8th Aug 2009 12:18
Don't know if this helps, but it's a good read on the subject: http://en.wikipedia.org/wiki/Rotation_matrix

[url="http://dbcc.zimnox.com"][/url]
Zotoaster
20
Years of Service
User Offline
Joined: 20th Dec 2004
Location: Scotland
Posted: 8th Aug 2009 12:23
They are very simple AFAIK.

Take a vector that you want to rotate, and turn it into a matrix, with 3 rows and 1 column (1 row per dimension). Then, simply multiply it by the rotation matrix, giving the angles you want to rotate by. That will result in a new 1x3 matrix, which you can turn into a vector, which will be a vector like your old one but rotated by the specified angle.
kaedroho
17
Years of Service
User Offline
Joined: 21st Aug 2007
Location: Oxford,UK
Posted: 8th Aug 2009 16:11
If your using DBPro, you can simply use rotate (xyz) matrix4 to rotate matrices.

You need to have 1 matrix for each axis then multiply the z by the y then the result of that by the x and you have a full rotation matrix.

Neuro Fuzzy
17
Years of Service
User Offline
Joined: 11th Jun 2007
Location:
Posted: 9th Aug 2009 03:03
I am using dbpro. Don't i want a 3X3 matrix? and doesn't "make matrix4" make a 4X4 matrix? I don't get how to apply this in dbpro :S

Thanks for the explanations though, I get the basics of rotation matrices now.

Login to post a reply

Server time is: 2025-06-06 09:52:00
Your offset time is: 2025-06-06 09:52:00