Logo by LAR2 - Contribute your own Logo!

END OF AN ERA, FRACTALFORUMS.COM IS CONTINUED ON FRACTALFORUMS.ORG

it was a great time but no longer maintainable by c.Kleinhuis contact him for any data retrieval,
thanks and see you perhaps in 10 years again

this forum will stay online for reference
News: Visit us on facebook
 
*
Welcome, Guest. Please login or register. April 18, 2024, 04:30:35 AM


Login with username, password and session length


The All New FractalForums is now in Public Beta Testing! Visit FractalForums.org and check it out!


Pages: [1]   Go Down
  Print  
Share this topic on DiggShare this topic on FacebookShare this topic on GoogleShare this topic on RedditShare this topic on StumbleUponShare this topic on Twitter
Author Topic: The 4d rotation matrix!  (Read 4621 times)
0 Members and 1 Guest are viewing this topic.
DarkBeam
Global Moderator
Fractal Senior
******
Posts: 2512


Fragments of the fractal -like the tip of it


« on: November 20, 2016, 12:33:21 PM »

I calculated it using a cute online tool.
Can be obtained multiplying six matrixes each for a 2d rot...
I just hope that I copied it correctly.
First row (x);
aeg; -bci-adfi-aehj; bdk-acfk+adfjl; -aehik+bcjk+adfjk-acfl.
Second row (y);
beg;aci-bdfi-behj;-adk-bcfk-behil-acjl+bdfjl;-behik-acjk+bdfjk+adl+bcfl.
Third row (z);
fg; dei-fhj;cek-fhil-dejl; -fhik-dejk-cel.
Last row (w);
h; gj; gil; gik.
Cos xy=a,sin xy=b, then yz, xz, xw,yw and last zw. (Abcdefghijkl)
That should give all possible 4d rotations.
Logged

No sweat, guardian of wisdom!
claude
Fractal Bachius
*
Posts: 563



WWW
« Reply #1 on: November 20, 2016, 12:56:14 PM »

The trouble with doing it that way is that animations will look weird, because the 6 base rotations don't all commute (ie, A * B != B * A). and so the order matters (eg, if you want to double the rotation angles you go from ABC to AABBCC instead of ABCABC).

There's a better way to do it using a pair of quaternions, with a qslerp (quaternion spherical linear interpolation) technique for tweening rotational animations.

See:
Quote
http://www.cs.indiana.edu/pub/techreports/TR406.pdf
"Rotations for N-Dimensional Graphics"
Andrew J. Hanson
which presents "a new form of the 4D orthogonal rotation matrix parameterized in terms of two separate 3-sphere coordinates", as well as the rolling ball algorithm for interactive orientation adjustment
Logged
Sabine
Fractal Fertilizer
*****
Posts: 373



WWW
« Reply #2 on: November 20, 2016, 01:40:49 PM »

No idea if this is any help, cause I really understand almost none of it  grin
http://www.geeks3d.com/20141201/how-to-rotate-a-vertex-by-a-quaternion-in-glsl/ in which he/she transforms rotation axis and position into two quaternions (with glsl-code...  grin)
Logged

sabine62.deviantart.com
Pages: [1]   Go Down
  Print  
 
Jump to:  

Related Topics
Subject Started by Replies Views Last post
Rotation matrix & inverse rot Mandelbulb 3d DarkBeam 6 7232 Last post June 21, 2011, 09:26:34 AM
by DarkBeam
Matrix FractalForums.com Banner Logos stereoman 0 2113 Last post May 27, 2012, 01:59:27 PM
by stereoman
The Matrix Mandelbulb3D Gallery MikePio 1 983 Last post August 17, 2012, 01:33:40 PM
by weavers
Rotation Matrix Mset Mandelbrot & Julia Set M Benesi 1 1864 Last post June 02, 2013, 08:30:51 PM
by M Benesi
matrix Mandelbulb3D Gallery gaoreji 0 895 Last post December 22, 2013, 09:42:39 AM
by gaoreji

Powered by MySQL Powered by PHP Powered by SMF 1.1.21 | SMF © 2015, Simple Machines

Valid XHTML 1.0! Valid CSS! Dilber MC Theme by HarzeM
Page created in 0.191 seconds with 28 queries. (Pretty URLs adds 0.007s, 2q)