Java-Gaming.org Hi !
 Featured games (83) games approved by the League of Dukes Games in Showcase (582) Games in Android Showcase (163) games submitted by our members Games in WIP (633) games currently in development
 News: Read the Java Gaming Resources, or peek at the official Java tutorials
 Home Help Search Login Register
Pages: [1]
 ignore  |  Print
 Rotation matrices  (Read 1869 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.
 Games published by our own members! Check 'em out!
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.

 Ralphanese (18 views) 2015-05-29 13:07:55 Gibbo3771 (15 views) 2015-05-29 06:54:17 Ralphanese (23 views) 2015-05-28 16:52:52 theagentd (31 views) 2015-05-27 22:21:17 theagentd (36 views) 2015-05-27 22:21:08 CopyableCougar4 (25 views) 2015-05-27 19:24:50 MrMapcom (24 views) 2015-05-23 20:26:16 MrMapcom (33 views) 2015-05-23 20:23:34 Waterwolf (37 views) 2015-05-20 15:01:45 chrislo27 (44 views) 2015-05-20 03:42:21
 Riven 25x Rayvolution 24x theagentd 22x BurntPizza 19x Spasi 17x orangepascal 16x Drenius 15x KevinWorkman 14x ra4king 13x DavidBVal 12x princec 12x opiop65 12x EgonOlsen 11x Husk 11x kevglass 9x Slyth2727 8x
 Intersection Methodsby Roquen2015-05-29 08:19:33List of Learning Resources2015-05-05 10:20:32How to: JGO Wikiby Mac702015-02-17 20:56:162D Dynamic Lighting2015-01-01 20:25:42How do I start Java Game Development?by gouessej2014-12-27 19:41:21Resources for WIP gamesby kpars2014-12-18 10:26:14Understanding relations between setOrigin, setScale and setPosition in libGdx2014-10-09 22:35:00Definite guide to supporting multiple device resolutions on Android (2014)2014-10-02 22:36:02
 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