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
|