|
|
On 31 Aug 2001 10:17:16 -0400, ingo wrote:
>
> Shoot a ray at the object to be rendered. Put an imaginary sphere with
>a given radius with its centre on the ray, its surface should toutch
>the objects surface in the intersection point. Now check if the sphere
>intersects somewhere with the object.
I got this far before I had to ask "how do you do THAT?" The answer is,
of course, that you cannot. The best you can do is fire a bunch of random
rays at nearby points on the object and try to estimate the local curvature
of the surface.
--
#local R=rgb 99;#local P=R-R;#local F=pigment{gradient x}box{0,1pigment{gradient
y pigment_map{[.5F pigment_map{[.3R][.3F color_map{[.15red 99][.15P]}rotate z*45
translate x]}]#local H=pigment{gradient y color_map{[.5P][.5R]}scale 1/3}[.5F
pigment_map{[.3R][.3H][.7H][.7R]}]}}}camera{location.5-3*z}//only my opinions
Post a reply to this message
|
|