Java-Gaming.org Hi !
 Featured games (90) games approved by the League of Dukes Games in Showcase (683) Games in Android Showcase (196) games submitted by our members Games in WIP (750) games currently in development
 News: Read the Java Gaming Resources, or peek at the official Java tutorials
Pages: [1]
 ignore  |  Print
 Rotation matrices  (Read 2240 times) 0 Members and 1 Guest are viewing this topic.
Porlus

Junior Devvie

 « Posted 2013-04-04 03:01:36 »

Hi all, I'm trying to get my head the algorithm for rotating around an arbitrary axis like that produced by glRotate. By the algorithm I mean the one under the "Description" header in this article: http://www.talisman.org/opengl-1.1/Reference/glRotate.html
More importantly I want to understand how it's derived. Does anyone happen to know any good learning resources or books which explain this well?

Thanks

Paul
kramin42
 « Reply #1 - Posted 2013-04-04 03:22:45 »

This Wikipedia page might help, although it doesn't really have the derivation:

http://en.wikipedia.org/wiki/Rotation_matrix#In_three_dimensions

I believe the matrix under the "Rotation matrix from axis and angle" heading is the same as the glRotate one.

Also this page has a derivation (it is quite terse though and doesn't explain everything):

http://inside.mines.edu/~gmurray/ArbitraryAxisRotation/

I don't know of any textbook in particular, but a linear algebra textbook might have the derivation.

"All science is either physics or stamp collecting." - Ernest Rutherford.
CodeGolf4k
M4nkala
Porlus

Junior Devvie

 « Reply #2 - Posted 2013-04-04 03:46:49 »

Cheers for the reply. Yeah, I've found a few definitions through google but it's harder to find an explanation of the underlying maths. It's got such a broad definition that it's quite hard to find a clear relevant explanation.
kramin42
 « Reply #3 - Posted 2013-04-04 04:18:12 »

Have you done much linear algebra before? Do you understand how Txz and Tz are found in that second link I posted? I might be able to explain things a bit more...

"All science is either physics or stamp collecting." - Ernest Rutherford.
CodeGolf4k
M4nkala
Roquen
 « Reply #4 - Posted 2013-04-04 04:20:44 »

All you need to know is: parallel projection (aka dot product).  You parallel project a point into three orthogonal vectors...you've rotated.  Put those three steps into a matrix...done.
relminator
 « Reply #5 - Posted 2013-04-05 15:37:06 »

Pages: [1]
 ignore  |  Print

You cannot reply to this message, because it is very, very old.

 orrenravid (191 views) 2016-07-16 03:57:23 theagentd (263 views) 2016-07-11 14:28:54 Hydroque (347 views) 2016-07-06 05:56:57 Hydroque (501 views) 2016-07-03 08:52:54 GrandCastle (377 views) 2016-07-01 09:13:47 GrandCastle (368 views) 2016-07-01 09:09:45 CopyableCougar4 (423 views) 2016-06-25 16:56:52 Hydroque (402 views) 2016-06-22 02:17:53 SwampChicken (366 views) 2016-06-20 13:22:57 SwampChicken (298 views) 2016-06-20 13:22:49
 Archive 27x Brynn 24x EgonOlsen 22x Slyth2727 22x orangepascal 22x TritonDreyja 21x orange451 20x DavidBVal 19x Spasi 19x theagentd 15x KaiHH 12x LiquidNitrogen 11x Opiop 11x princec 11x Phased 10x CoDi^R 10x
 Making a Dynamic Plugin Systemby Hydroque2016-06-25 00:13:25Java Data structures2016-06-13 21:22:09Java Data structures2016-06-13 21:20:42FPS Camera Tutorialby Hydroque2016-05-22 05:40:58Website offering 3D Models specifically for games for freeby vusman2016-05-18 17:23:09Website offering 3D Models specifically for games for freeby vusman2016-05-09 08:50:56Website offering 3D Models specifically for games for freeby vusman2016-05-06 11:10:21Website offering 3D Models specifically for games for freeby vusman2016-04-29 12:56:17
 java-gaming.org is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑gaming.org