Logo by AGUS - Contribute your own Logo!


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. August 07, 2022, 06:57:09 PM

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
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 1756 times)
0 Members and 1 Guest are viewing this topic.
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);
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.

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

« 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.

"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
Fractal Fertilizer
Posts: 373

« 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)

Pages: [1]   Go Down
Jump to:  

Related Topics
Subject Started by Replies Views Last post
Rotation matrix & inverse rot Mandelbulb 3d DarkBeam 6 5545 Last post June 21, 2011, 09:26:34 AM
by DarkBeam
Matrix FractalForums.com Banner Logos stereoman 0 1516 Last post May 27, 2012, 01:59:27 PM
by stereoman
The Matrix Mandelbulb3D Gallery MikePio 1 581 Last post August 17, 2012, 01:33:40 PM
by weavers
Rotation Matrix Mset Mandelbrot & Julia Set M Benesi 1 1239 Last post June 02, 2013, 08:30:51 PM
by M Benesi
matrix Mandelbulb3D Gallery gaoreji 0 482 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.153 seconds with 25 queries. (Pretty URLs adds 0.008s, 2q)