POV-Ray : Newsgroups : povray.text.scene-files : Proximity Pattern and 3.5 : Re: Proximity Pattern and 3.5 Server Time
3 Jul 2024 02:02:25 EDT (-0400)
  Re: Proximity Pattern and 3.5  
From: Ron Parker
Date: 7 Feb 2002 13:50:21
Message: <slrna65j3g.9qu.ron.parker@fwi.com>
On Thu, 07 Feb 2002 19:46:29 +0100, Christoph Hormann wrote:
> 
> 

>> 
>> Here is my simplest attempt to achive proximity pattern with 3.5. If there is
>> anybody interested with more functionality of proximity pattern available in
>> megapov then tell me. I can extend this macro.
> 
> Interesing, but it looks more like a blur pattern to me, the proximity
> pattern uses intersection tests IIRC.

So does this, essentially.  It effectively returns an approximation of the
fraction of the local region of space that's occupied by the object.  For
a sufficiently small region or a sufficiently large object, that number is
related to the distance to the surface of the object (though part of me 
thinks there should be a cube root involved somewhere...)

-- 
#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{rgbf 1}hollow interior{media{emission 3-T}}}#end 
Z(-x-x.2x)camera{location z*-10rotate x*90normal{bumps.02scale.05}}


Post a reply to this message

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