|
|
On 07/05/2024 23:41, Droj wrote:
> // Mandelbulb - power 4 - Believe me the power 6 is a vision of hell!
Agree with you - sometimes it looks horrible ...
--------------------------------------------------------------------
camera{location <-2.5,5,5> look_at <-0.5,0,0.3> up z sky z angle 25}
light_source{20*z,1}
#declare f=function(i,x,y,z,xc,yc,zc) {select(i>0 & x*x+y*y+z*z<4, 0,
sqrt(x*x+y*y+z*z),
f(i-1,(x*x-y*y)*(1-z*z/(x*x+y*y))+xc,2*x*y*(1-z*z/(x*x+y*y))+yc,-2*z*sqrt(x*x+y*y)+zc,xc,yc,zc))};
isosurface{function{f(24,x,y,z,x,y,z)} threshold 0.5 max_gradient 1000
contained_by{sphere{<-0.5,0,0>,2}} pigment{rgb 1}}
--------------------------------------------------------------------
--
YB.
Post a reply to this message
Attachments:
Download 'fract_02.png' (163 KB)
Download 'fract_02_1.png' (117 KB)
Preview of image 'fract_02.png'
Preview of image 'fract_02_1.png'
|
|