Title: Can someone please try this... Post by: David Makin 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. Title: Re: Can someone please try this... Post by: David Makin 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 Title: Re: Can someone please try this... Post by: DarkBeam 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 :)
Title: Re: Can someone please try this... Post by: David Makin 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 :) 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 :( (I haven't run UF for several months - I'm currently working on a macro language/parser for generation of shader 2 source) Title: Re: Can someone please try this... Post by: Sockratease 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 O0 Title: Re: Can someone please try this... Post by: David Makin 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 O0 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. Title: Re: Can someone please try this... Post by: M Benesi 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 Guess what I got? Dun dun dun dun.... a square 3d BS variant: (https://lh5.googleusercontent.com/_gbC_B2NkUEo/TW84axD6z1I/AAAAAAAABDM/ZG1ZSy-ZMX4/s144/square%20bs%20variant%20for%20david.jpg) (https://lh5.googleusercontent.com/_gbC_B2NkUEo/TW84axD6z1I/AAAAAAAABDM/ZG1ZSy-ZMX4/square%20bs%20variant%20for%20david.jpg) (https://lh4.googleusercontent.com/_gbC_B2NkUEo/TW84Z82dwzI/AAAAAAAABDE/F6Gxh-10NTc/s144/square%20bs%20variant%20for%20david%202.jpg) (https://lh4.googleusercontent.com/_gbC_B2NkUEo/TW84Z82dwzI/AAAAAAAABDE/F6Gxh-10NTc/square%20bs%20variant%20for%20david%202.jpg) (https://lh5.googleusercontent.com/_gbC_B2NkUEo/TW84a7XCioI/AAAAAAAABDI/hHCKSY9magc/s144/square%20bs%20variant%20for%20david%203.jpg) (https://lh5.googleusercontent.com/_gbC_B2NkUEo/TW84a7XCioI/AAAAAAAABDI/hHCKSY9magc/square%20bs%20variant%20for%20david%203.jpg) Notice the similarity to my old fractal (1st image is square formula, 2nd image is my old one, formula follows): (https://lh5.googleusercontent.com/_gbC_B2NkUEo/TW87Bl5buXI/AAAAAAAABDc/HwSckJoGShg/s144/square%20bs%204%20for%20david.jpg) (https://lh5.googleusercontent.com/_gbC_B2NkUEo/TW87Bl5buXI/AAAAAAAABDc/HwSckJoGShg/square%20bs%204%20for%20david.jpg) (https://lh4.googleusercontent.com/_gbC_B2NkUEo/TW87BtN-sRI/AAAAAAAABDg/nvs5nYfhLvs/s144/my%20frac%20comp%20for%20david%202.jpg) (https://lh4.googleusercontent.com/_gbC_B2NkUEo/TW87BtN-sRI/AAAAAAAABDg/nvs5nYfhLvs/my%20frac%20comp%20for%20david%202.jpg) Code: new x= x^2 -y^2 -z^2 + x pixel value Your original code: Code: nx=sqr(sx)-sqr(sy) - sqr(sz) - sqr(sk); (https://lh3.googleusercontent.com/_gbC_B2NkUEo/TW8KzXTq4QI/AAAAAAAABCo/DoRxyQ9jJ6k/s288/for%20david%202.jpg)(https://lh6.googleusercontent.com/_gbC_B2NkUEo/TW8Kzl7YktI/AAAAAAAABCs/zbVTU_R7VU4/s288/for%20david.jpg)(https://lh5.googleusercontent.com/_gbC_B2NkUEo/TW8KzjjLrEI/AAAAAAAABCw/b83LYuyykzk/s288/for%20david%203.jpg) Title: Re: Can someone please try this... Post by: Sockratease 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 O0 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). |