POV-Ray : Newsgroups : povray.binaries.images : Patina/grime (40k) : Re: Patina/grime (40k) Server Time
18 Aug 2024 00:21:26 EDT (-0400)
  Re: Patina/grime (40k)  
From: Ron Parker
Date: 31 Aug 2001 13:53:46
Message: <slrn9ovjpc.4or.ron.parker@fwi.com>
On 31 Aug 2001 13:37:10 -0400, ingo wrote:
>in news:slr### [at] fwicom Ron Parker wrote:
>
>> The solution I proposed the last time this discussion came around
>> was to fire rays from just "above" the intersection point in a
>> small area around the intersection point, and estimate the
>> curvature from that. 
>
>:) You could have shot your first ray through a hole and have the 
>random rays now inspecting the inside of a big cavity.
>
>Anyway, could something like this be done with functions and macro's?

I doubt it.  For one thing, I don't think you can use trace() in a function,
even in 3.5.  That would kill it right there.

-- 
#macro R(L P)sphere{L F}cylinder{L P F}#end#macro P(V)merge{R(z+a z)R(-z a-z)R(a
-z-z-z a+z)torus{1F clipped_by{plane{a 0}}}translate V}#end#macro Z(a F T)merge{
P(z+a)P(z-a)R(-z-z-x a)pigment{rgbt 1}hollow interior{media{emission T}}finish{
reflection.1}}#end Z(-x-x.2y)Z(-x-x.4x)camera{location z*-10rotate x*90}


Post a reply to this message

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