Logo by Jimpan1973 - 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: Check out the originating "3d Mandelbulb" thread here
 
*
Welcome, Guest. Please login or register. April 25, 2024, 03:31:05 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: Fun formula  (Read 815 times)
0 Members and 1 Guest are viewing this topic.
lycium
Fractal Supremo
*****
Posts: 1158



WWW
« on: February 17, 2016, 05:01:07 AM »

Still quite a lot of exploring to be done with this  afro

Code:
const float2 c = (float2)(1.0f,  sqrt(3.0f)) * -0.4899995f;
const float2 a = (float2)(0.9f, 0.2931446f);

float2 z = p;

const int max_iters = 1 << 10;

int i = 0;
for ( ; i < max_iters; ++i)
{
  const float2 z_num = cmul(z, z) + c;
  const float2 z_den = cmul(z, z) - (float2)(1, 0);
  const float2 m = cdiv(z_num, z_den);

  const float2 n = a + cdiv((float2)(1, 0), cmul(z, z) - cmul(a, a));

  z = cmul(cdiv(m, n), z);

  if (length(z) > 640000) break;
}

// i is bailout iteration

Renders:



Click for 4k resolution image or visit http://lyc.deviantart.com/art/spectral-julia-591316607



Click for 8k resolution image or visit http://lyc.deviantart.com/art/new-formula-8k-render-591318104
Logged

lycium
Fractal Supremo
*****
Posts: 1158



WWW
« Reply #1 on: February 19, 2016, 04:09:34 AM »

FarDareisMai made a UF formula out of this, with some extra parameters:

Logged

mclarekin
Fractal Senior
******
Posts: 1739



« Reply #2 on: February 19, 2016, 08:58:33 AM »

 afro. I like the maths idea  smiley smiley smiley
Logged
phtolo
Navigator
*****
Posts: 79



« Reply #3 on: April 07, 2016, 07:37:24 PM »

Quaternion version




* lycfunformula.frag (3.41 KB - downloaded 64 times.)
Logged
Pages: [1]   Go Down
  Print  
 
Jump to:  

Related Topics
Subject Started by Replies Views Last post
Where does THE formula come from ? Mandelbrot & Julia Set bib 5 5298 Last post January 26, 2009, 07:12:10 PM
by cKleinhuis
Formula? Theory « 1 2 » lkmitch 20 9888 Last post March 23, 2010, 06:01:56 AM
by jehovajah
Has anyone tried this formula? Theory « 1 2 3 » TedWalther 32 15257 Last post December 06, 2009, 02:58:08 PM
by jehovajah
New 3D IFS formula for UF5 IFS - Iterated Function Systems « 1 2 » fractalrebel 18 22020 Last post November 13, 2011, 01:39:30 AM
by xenodreambuie
@jesse - save formula as new formula ?! feature request cKleinhuis 0 5068 Last post October 10, 2012, 05:43:14 PM
by cKleinhuis

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.159 seconds with 24 queries. (Pretty URLs adds 0.009s, 2q)