POV-Ray : Newsgroups : povray.binaries.images : Patina/grime (40k) : Re: Patina/grime (40k) Server Time
17 Aug 2024 18:25:25 EDT (-0400)
  Re: Patina/grime (40k)  
From: Ron Parker
Date: 31 Aug 2001 10:44:12
Message: <slrn9ov8lt.4kd.ron.parker@fwi.com>
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

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.