Shop Forum More Submit  Join Login
new formula 8k render by lyc new formula 8k render by lyc
went a bit crazy rendering a 16k image, downsized to make this 8k image.

another render: lyc.deviantart.com/art/spectra…


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
Add a Comment:
 
:iconmathness:
Mathness Featured By Owner Feb 22, 2016
Looks nice. Well, except for those const inside a loop. ;P
Reply
:iconlyc:
lyc Featured By Owner Feb 22, 2016
what's wrong with const in a loop? :)
Reply
:iconmathness:
Mathness Featured By Owner Feb 23, 2016
Nothing, my style is just when const is a prefix, it a global that is set once. :)
Reply
:iconpiethein21:
piethein21 Featured By Owner Feb 18, 2016  Hobbyist Digital Artist
lol
Reply
:iconlyc:
lyc Featured By Owner Feb 18, 2016
lol?
Reply
:iconpiethein21:
piethein21 Featured By Owner Feb 18, 2016  Hobbyist Digital Artist
computer abuse
Reply
Add a Comment:
 
×




Details

Submitted on
February 16, 2016
Image Size
53.1 MB
Resolution
8192×4608
Thumb

Stats

Views
304
Favourites
7 (who?)
Comments
6
Downloads
11