POV-Ray : Newsgroups : povray.binaries.images : Crevice grime : Re: Crevice grime Server Time
30 Jul 2024 18:10:57 EDT (-0400)
  Re: Crevice grime  
From: Trevor G Quayle
Date: 13 Mar 2011 12:20:01
Message: <web.4d7cee9c50dd01ddb05ef170@news.povray.org>
clipka <ano### [at] anonymousorg> wrote:
> Am 13.03.2011 16:20, schrieb Trevor G Quayle:
>
> > For this I am basically tracing a regular set of points around my object.  I
> > then use tha point and normal found to run a series of traces at some angle from
> > the normal rotated around the normal (in this case I am using 32 traces at 75
> > degrees).  I then check for intersection and distance to intersection for all
> > traces and then place a sphere on the surface at that location that is coloured
> > based on the average distance to intersections.
>
> What kind of average are you using?
>
> Radiosity is using a harmonic mean (the inverse of the arithmetic mean
> of the inverse values) for "closeness" computations, so that very far
> distances don't dominate over the more interesting small distances.

Actually at present I was using and inverse function similar to the light
attenuation function.

pigment = (1-1/(1+adist))^10

This way far distances get diminished to near zero, and close distances get
weighted up to a value of 1.  I will probably look at some other mean functions.

-tgq


Post a reply to this message

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