POV-Ray : Newsgroups : povray.binaries.images : lost in julia space : lost in julia space Server Time
6 Nov 2024 22:13:37 EST (-0500)
  lost in julia space  
From: Floyd
Date: 13 Nov 2004 18:05:01
Message: <web.41969236283f3b845ca17c0e0@news.povray.org>
I'm playing around with while loops and random numbers now in povray and
thought this was a nice image for such a short amount of code.  Kind of
looks like neon diatoms.  - Floyd

//////////////////////////////////////////////////
#include "stars.inc"

camera {
   focal_point <0, 0,  50>
   aperture 0.8
   blur_samples 50
}

sphere {<15,0,5,> 2000 hollow texture {Starfield2}}

#declare r1 = seed(1155);
#declare INC = 7;
#declare NrX = -20;
#declare EndNrX = 20;
#while (NrX < EndNrX)
 #declare NrZ = -1;
 #declare EndNrZ = 200;
 #while (NrZ < EndNrZ)
    #declare NrY = -20;
    #declare EndNrY = 20;
    #while (NrY < EndNrY)
       julia_fractal
          {<rand(r1)*2-1,rand(r1)*2-1,rand(r1)*2-1,rand(r1)*2-1>
          quaternion sqr
          max_iteration 8
          precision 50
          pigment { rgb <rand(r1),rand(r1),rand(r1),0> }
          finish {ambient rand(r1) reflection rand(r1)}
          rotate <rand(r1)*360,rand(r1)*360,rand(r1)*360>
          translate <NrX+rand(r1)*INC,NrY+rand(r1)*INC,NrZ+rand(r1)*INC>
        }
       #declare NrY = NrY + INC;
    #end
  #declare NrZ = NrZ + INC;
 #end
 #declare NrX = NrX + INC;
#end
/////////////////////////////////////////////////////////////////////


Post a reply to this message


Attachments:
Download 'rand_julia1-2.jpg' (556 KB)

Preview of image 'rand_julia1-2.jpg'
rand_julia1-2.jpg


 

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