|
|
Hi!
You forgot a "#" before the while, so "#while" instead of "while" will work.
Best regards,
Florian
//--------------------------------------------->code start
//version 3.1
#include "colors.inc"
#declare cam1=
camera{location <0,0.2,-1> look_at <0,0,0>
}
camera {cam1}
light_source{
<0,2,-2>
color White
}
background{
color White
}
plane{
y,0
pigment{color White}
}
#declare blob_tex = texture {pigment {color White}}
#declare blob_fin = finish {
phong 0.5
reflection 0.01
diffuse 0.6
}
blob{
#local anz = 5;
#local counter = 1;
threshold 0.1
#while(counter <= anz)
sphere{
<0.1*counter,0.1,0>,0.1, 1
texture{blob_tex}
finish{blob_fin}
}
#local counter = counter + 1;
#end
}
Post a reply to this message
|
|