POV-Ray : Newsgroups : povray.text.scene-files : Re: Fractal landscape include file : Re: Fractal landscape include file Server Time
29 Jul 2024 02:29:06 EDT (-0400)
  Re: Fractal landscape include file  
From: Nieminen Mika
Date: 9 May 1998 18:22:24
Message: <6j2kv0$pjg$1@oz.aussie.org>
Nieminen Mika (war### [at] cctutfi) wrote:
: I think that a scene with hundreds of thousands
: of spheres that make a mandelbrot landscape with only a 20 lines pov-file
: is outstanding :)

  I was wondering how small can I make the mandelbrot sphere heightfield.

camera{location<-2,3,-2>look_at 0}light_source{<9,9,-9>1}#declare Z=-1#while(Z
<1)#declare X=-2#while(X<1)#declare r=X#declare i=Z#declare n=0#while(n<1&r*r
+i*i<4)#declare a=2*r*i+Z#declare r=r*r-i*i+X#declare i=a#declare n=n+.05#end
sphere{<X,n,Z>.02pigment{rgb<n,n,0>}}#declare X=X+.02#end#declare Z=Z+.02#end

  4 lines. Not bad...
  I really like the povray description language :)

--
                                                              - Warp. -


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.