POV-Ray : Newsgroups : povray.binaries.images : Re: Macro stuff : Re: Macro stuff Server Time
19 Aug 2024 22:17:32 EDT (-0400)
  Re: Macro stuff  
From: Tom Melly
Date: 3 Oct 2000 12:15:32
Message: <39da0624$1@news.povray.org>
"Zilvah" <zil### [at] onlineno> wrote in message
news:39d9d080@news.povray.org...

<snip>

Is this the sort of thing you are after?

#include "colors.inc"

camera{location <0,25,-70> look_at y*25}
light_source{0, White translate <10,10,-50>}
sky_sphere{pigment{White}}

#declare R = seed(334523);
#declare y_count = 0.1;
#while (y_count < 50)
  #declare z_trans = (y_count/2);
  #declare y_rot = rand(R) * 360;
  sphere{
    y_count*y, 0.5 + rand(R)
    pigment{rgb<0.25 + rand(R), 0.25 + rand(R), 0.25 + rand(R)>}
    finish{ambient 0.5}
    translate z * (z_trans * (1 + rand(R)/5)) rotate y*y_rot
  }
  #declare y_count = y_count + 0.2;
#end


Post a reply to this message

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