Title: Mandelbox tree Post by: Alef on March 21, 2012, 07:45:26 PM Tried to implement mandelbox formula. IMHO, something went wrong.
(http://fc05.deviantart.net/fs70/f/2012/081/8/f/mandelbox_tree_by_edo555-d4tkznu.jpg) And used direct colouring exponent smoothing. At least it is not wrong. Title: Re: Mandelbox tree Post by: Alef on March 21, 2012, 07:50:36 PM Is this correct code for mandelbox?
Quote //boxfold if (zx > check) { zx=Fold - zx; } else if (zx < -check) { zx=0-Fold-zx; } if (zy > check) { zy=Fold - zy; } else if (zy <-check) { zy=0-Fold-zy; } if (zy > check) { zy=Fold - zy; } else if (zy <-check) { zy=0-Fold-zy; } //spherefold radius =sqr(zx) + sqr(zy) + sqr(zz); if (radius < sqr(Min_R) ) { temp = (Max_R)/sqr(Min_R); } else if (radius < (Max_R) && radius !=0) { temp = (Max_R)/(radius); } else { temp = (Max_R); } zx = Scale*zx * temp + Cx; zy = Scale*zy * temp + Cy; zz = Scale*zz * temp + Cz; Mandelbulb3D have in description of mandelbox have this code, but it seems not to work. Why? Quote /* zx = abs(zx+Fold) - abs(zx-Fold) -zx; zy = abs(zy+Fold) - abs(zy-Fold) -zy; zz = abs(zz+Fold) - abs(zz-Fold) -zz;*/ Title: Re: Mandelbox tree Post by: cKleinhuis on March 21, 2012, 08:17:13 PM have you checked this?
http://sites.google.com/site/mandelbox/ i have implemented it - in 2d in uf, but ... it works ... - and it is a good source for parameters, and the actual code... Title: Re: Mandelbox tree Post by: Jesse on March 21, 2012, 09:27:24 PM Mandelbulb3D have in description of mandelbox have this code, but it seems not to work. Why? You have to use fabs, i usually write in pascal and abs is used for floats too. Title: Re: Mandelbox tree Post by: fractower on March 22, 2012, 04:09:40 AM I think the problem is in the final step of the spherical fold
{ temp = (Max_R); } should probably be { temp = 1.0; } Though it would be a shame to fix it. Title: Re: Mandelbox tree Post by: eiffie on March 22, 2012, 04:42:42 PM Also you have the box fold on zy twice.
Title: Re: Mandelbox tree Post by: Alef on March 25, 2012, 07:59:59 PM Also you have the box fold on zy twice. Wow. Didn't noticed such eee :embarrass: error. Thought it would be something smart. Thanks Eiffie. Spherefold will to be ordinary if Max_R=1. This were intentional modification in some code, throught pretty useless one. Fabs are same as Ultra Fractal Cabs? Mandelbox fractals made by this error was pretty nice. So I will keep it as switchable feature;) Title: Re: Mandelbox tree Post by: Alef on March 25, 2012, 08:55:44 PM Here are some error mandelboxes.
Julia set, but with some additions. Probably an exponent smoothing created this kaliset pattern. (http://fc05.deviantart.net/fs71/f/2012/085/d/4/error_mandelbox_1_by_edo555-d4u0cge.jpg) Mandelbrot set with the same variation. (http://fc01.deviantart.net/fs71/f/2012/085/3/d/error_mandelbox_2_by_edo555-d4u0d25.jpg) Mandelbrot set with round function implemented. (http://fc01.deviantart.net/fs70/f/2012/085/b/8/error_mandelbox_3_by_edo555-d4u0dst.jpg) Title: Re: Mandelbox tree Post by: Alef on March 31, 2012, 07:38:13 PM Another pic gone devious. Mandelbox / amazingbox + unit vector addition and positive real factor a bitt naturalised hi-tech fractal. (http://fc07.deviantart.net/fs71/f/2012/091/6/d/mandelbox___unit_vector_by_edo555-d4umd5h.jpg) Here is another: (http://fc03.deviantart.net/fs71/f/2012/088/3/6/mandelbox_variations_by_edo555-d4ub4jq.jpg) |