|
![](/i/fill.gif) |
// Scene file as follows uncomment one declaration of rah or the other:
#declare RRR=seed(123);
#macro ra()
rand(RRR)-0.5
#end
#declare n=0;
#while(n<1000)
// if you uncomment the line below
// you get what I want
// #declare rah= 0.9*(rand(RRR)-0.5)*x;
// if you uncomment the line below
// you get a variable that has x,y,z
//#declare rah= 0.9*ra()*x;
#declare obstacle= 12*vaxis_rotate(x*1+rah,y,360*n/1000);
sphere{obstacle, .1 pigment {rgb 0.95}finish{ambient 1}}
#declare n=n+1;
#end
Post a reply to this message
|
![](/i/fill.gif) |