|
![](/i/fill.gif) |
Ken <tyl### [at] pacbell net> wrote:
: Stop posting binaries to this group ! :)
It's not a binary, it's a C program O:)
: There is one way to get a bounded_by to act as a clipped_by without having
: to specify the clipped_by statement:
: camera { location <0, 0, -3> look_at 0}
: light_source {<0, 0, -20> rgb 1}
: intersection {
: sphere { 0,1
: pigment { rgb 1 }
: bounded_by {
: box { -.5,.5 }
: }
: }
: }
The sphere is not being clipped here. The projection of the sphere on
screen is being clipped by the projection of the box in screen. This is
very easy to test. Try this:
camera { location <2, 2, -3> look_at 0}
light_source {<0, 0, -20> rgb 1}
intersection {
sphere
{ 0,1
pigment { rgb 1 }
bounded_by { box { <-10,0,-10>,<10,-.1,10> } }
}
}
If the box were clipping the sphere, we would see a circular section of
the box. Instead, we see a regular sphere. Why? Because the projection of
the box on screen completely covers the projection of the sphere on screen.
The 'intersection' has no effect here.
: Nieminen Juha <--- ?????
It's a long story.
--
main(i,_){for(_?--i,main(i+2,"FhhQHFIJD|FQTITFN]zRFHhhTBFHhhTBFysdB"[i]
):5;i&&_>1;printf("%s",_-70?_&1?"[]":" ":(_=0,"\n")),_/=2);} /*- Warp -*/
Post a reply to this message
|
![](/i/fill.gif) |