|
![](/i/fill.gif) |
Hello all,
I am trying to create a blob object with a number of sphere, but I am
trying to place them at random. Now the following problem occurs, all
sphere are placed at the same position. The objection, of course, is to see
all the spheres. My code is as follows:
#declare bubbles = blob
{
threshold 0.5
#declare i = 0;
#while (i<50)
#declare S = seed(3415765);
#declare X = rand(S);
#declare Y = (rand(S)*2)+0.5;
#declare Z = rand(S);
sphere { <X, Y, Z>, 0.4, 0.55
pigment { color rgb <0.8, 0.3, 0.6> }
}
#declare i = i + 1;
#end
}
Any help would be appreciated,
Koos Jan Niesink
Post a reply to this message
|
![](/i/fill.gif) |