Logo by lycium - 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 the official fractalforums.com Youtube Channel
 
*
Welcome, Guest. Please login or register. November 30, 2025, 11:14:40 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: Can someone please try this...  (Read 2049 times)
0 Members and 1 Guest are viewing this topic.
David Makin
Global Moderator
Fractal Senior
******
Posts: 2286



Makin' Magic Fractals
WWW
« on: March 02, 2011, 07:08:09 PM »

This may be interesting, very interesting or completely useless/boring, but....

If you have a z^2+c quaternion 3D renderer then I'd be interested to see the result if you change the calculations as follows:

    new x = x^2 - y^2 - z^2 - w^2 + cx
    new y = sign(z)*sign(w)*2*x*y  + cy
    new z = sign(y)*sign(w)*2*x*z + cz
    new w = sign(y)*sign(z)*2*x*w + cw

Just in case anyone doesn't know here I use sign(v) to return +1 if v is positive (or unsigned zero) and -1 if v is negative.
Logged

The meaning and purpose of life is to give life purpose and meaning.

http://www.fractalgallery.co.uk/
"Makin' Magic Music" on Jango
David Makin
Global Moderator
Fractal Senior
******
Posts: 2286



Makin' Magic Fractals
WWW
« Reply #1 on: March 03, 2011, 12:03:05 AM »

Another one (3D):

Compute 3D "quaternionic" z^2 as normal:
  t = x
  x = x^2 - y^2 -z^2
  y = 2*t*y
  z = 2*t*z
Then rotate (y,z) by atan2(pixely,pixelx)
Then add the constant
Logged

The meaning and purpose of life is to give life purpose and meaning.

http://www.fractalgallery.co.uk/
"Makin' Magic Music" on Jango
DarkBeam
Global Moderator
Fractal Senior
******
Posts: 2512


Fragments of the fractal -like the tip of it


« Reply #2 on: March 03, 2011, 12:13:28 AM »

The easiest way is write a Mb3d transform for those things, but why don't you post a preview image made with your uf raytracer smiley
Logged

No sweat, guardian of wisdom!
David Makin
Global Moderator
Fractal Senior
******
Posts: 2286



Makin' Magic Fractals
WWW
« Reply #3 on: March 03, 2011, 12:32:10 AM »

The easiest way is write a Mb3d transform for those things, but why don't you post a preview image made with your uf raytracer smiley

Because I'm on a Mac mini and I can't run UF on this because there's no room to put W7 on as well as OSX sad

(I haven't run UF for several months - I'm currently working on a macro language/parser for generation of shader 2 source)
« Last Edit: March 03, 2011, 12:34:18 AM by David Makin » Logged

The meaning and purpose of life is to give life purpose and meaning.

http://www.fractalgallery.co.uk/
"Makin' Magic Music" on Jango
Sockratease
Global Moderator
Fractal Senior
******
Posts: 3181



« Reply #4 on: March 03, 2011, 12:45:10 AM »

Have you tried WINE?  Or Crossover?

Both are tiny programs that allow windows software to run on a mac without having windows installed!

I run UF, Mandelbulb 3D, Xenodream, and many other windows programs on my macbook, and windows is not installed on it anywhere   afro
Logged

Life is complex - It has real and imaginary components.

The All New Fractal Forums is now in Public Beta Testing! Visit FractalForums.org and check it out!
David Makin
Global Moderator
Fractal Senior
******
Posts: 2286



Makin' Magic Fractals
WWW
« Reply #5 on: March 03, 2011, 02:32:55 AM »

Have you tried WINE?  Or Crossover?

Both are tiny programs that allow windows software to run on a mac without having windows installed!

I run UF, Mandelbulb 3D, Xenodream, and many other windows programs on my macbook, and windows is not installed on it anywhere   afro

Ah ! I confess I never looked into Wine or Crossover, I just assumed they required a full Windows OS to be installed.
Thanks, will look into it at the weekend.
Logged

The meaning and purpose of life is to give life purpose and meaning.

http://www.fractalgallery.co.uk/
"Makin' Magic Music" on Jango
M Benesi
Fractal Schemer
****
Posts: 1075



WWW
« Reply #6 on: March 03, 2011, 04:30:56 AM »

  First one was very discontinuous.  Images at the bottom.... messed around a bit in between:

  UPDATE:  I also tried your old {x,y,z,w}2 = {x2-y2-z2-w2, 2(xy+zw), 2(xz+yw), 2(xw+yz)} set with the signs... nothing interesting: fractured all up.  Then I did something a bit freaky:

New code:
Code:
	nx=(sqr(sx)-r1);       /nx  is new x   sx is starting x  ... same for all variables
ny=-2*abs(sx*sy+sz*sk);  //          abs is absolute value
nz=2*abs(sx*sz+sy*sk);  //
nk=-2*abs(sx*sk+sy*sz);  //

  Guess what I got?  Dun dun dun dun....  a square 3d BS variant:


  Notice the similarity to my old fractal (1st image is square formula, 2nd image is my old one, formula follows):


Code:
new x= x^2 -y^2 -z^2   + x pixel value
new y= - abs [ 2* sqrt(x^2+y^2) * z]   + absolute value of y pixel value
new z= - abs [(x^2+y^2-z^2) * (2*x*y) * (x^2+y^2)^-1]   + absolute value of z pixel value



Your original code:
Code:
	nx=sqr(sx)-sqr(sy) - sqr(sz) - sqr(sk);

if (sy<0) { sy2=-1;} else {sy2=1;}
if (sz<0) {sz2=-1;} else {sz2=1;}
if (sk<0) {sk2=-1;} else {sk2=1;}

ny=2*sz2*sk2*sx*sy;
nz=2*sy2*sk2*sx*sz;
nk=2*sy2*sz2*sx*sk;

  then pixel or julia values...

« Last Edit: March 03, 2011, 08:03:56 AM by M Benesi » Logged

Sockratease
Global Moderator
Fractal Senior
******
Posts: 3181



« Reply #7 on: March 03, 2011, 12:27:24 PM »

Have you tried WINE?  Or Crossover?

Both are tiny programs that allow windows software to run on a mac without having windows installed!

I run UF, Mandelbulb 3D, Xenodream, and many other windows programs on my macbook, and windows is not installed on it anywhere   afro

Ah ! I confess I never looked into Wine or Crossover, I just assumed they required a full Windows OS to be installed.
Thanks, will look into it at the weekend.


yup, wonderful software!

Just be aware that not all windows programs work this way  (I listed some that do, but Chaoscope, Mutatorkammer, and many more do not!).

But WINE is free, and Crossover is about $40  (Crossover is a fancier and improved version of WINE).
Logged

Life is complex - It has real and imaginary components.

The All New Fractal Forums is now in Public Beta Testing! Visit FractalForums.org and check it out!
Pages: [1]   Go Down
  Print  
 
Jump to:  


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.252 seconds with 25 queries. (Pretty URLs adds 0.019s, 2q)