|
![](/i/fill.gif) |
hi all.
as I happily played along with POV I stumbled across the following problem,
where I seem to lack basic understanding of how things work, example given:
i want the brown thingies to cut holes into the grey block:
image: www.zensorama.de/rnd_cuts1.jpg
####################################################
camera{
location <50,16,50>
look_at <0,0,0>
angle 40
}
#declare S = seed(0);
#declare Index = 1;
#while(Index <= 300)
#declare graus = 1*rand(S); // random farbe
#declare bocks = box {<1,1,1> .1
pigment {rgb<1,0.7,0>}
translate <10*rand(S),3,-0.0*rand(S)>
scale <0.4*rand(S)-1,4*rand(S),0.4*rand(S)>
rotate <0*rand(S), 90*rand(S)-45, 90*rand(S)>
};
object {bocks rotate <0,90,0> translate <0,5,0> }
#declare Index = Index + 1;
#end
box {<-10,-10,-10>,<10,12,10>
pigment { rgb <0.8,0.8,0.8>}
translate <0,0,0>
rotate <0*rand(S), 0*rand(S), 0*rand(S)>
}
####################################################
where and how would I place the CSG? I managed to intersect both objects
(although this probably gave me 300 big grey blocks first;), I managed to
subtract the block from the random boxes, but vice versa didn't work...
help appreciated
Post a reply to this message
|
![](/i/fill.gif) |