|
![](/i/fill.gif) |
Peter Popov <pet### [at] usa net> wrote:
: I have not either. Perhaps you have missed my main point, and it is
: textures. Imagine you have this:
: intersection
: { union
: { sphere { -x, 1 pigment { Red } }
: sphere { x, 1 pigment { Blue } }
: }
: box { <-3,0,-2>, <3,2,2> }
: }
But that's not possible. Suppose that the radiuses of the spheres are
a bit larger (so that the spheres overlap). What's the color of the
overlapping part?
On the other hand, even in your example: How can povray know which one
is the right sphere to get the color from? It only has knowledge of the
intersection of the ray with the box. It would have to somehow decide which
sphere is the right one. I don't know how povray works in this matter, but
it might be difficult to see which sphere is the right one. It's more difficult
if the spheres overlap or one sphere is completely inside the other.
And besides, bounding is not intended for that kind of functionality.
Boundind is intended only for speeding up the rendering.
--
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) |