|
![](/i/fill.gif) |
SharkD <mik### [at] gmail com> wrote:
> SharkD wrote:
> > I need a function similar to spherical, except where the strength drops
> > off at a different (i.e. nonlinear) rate:
> >
> > Strength = sin(acos(Radius))
> >
> > I'm not sure how to implement it in POV SDL though...
> >
> > -Mike
>
> Err... I *think* this is how to do it:
>
> function {sin(acos(f_r(x,y,z)))}
>
> Correct?
>
> -Mike
I had fun trying some variations on this theme.
cos(atan(r)) gives a much more satisfying decrease with distance.
a/(a+r) or a^(-r) will work too, but give a catastrophic drop-off.
Post a reply to this message
|
![](/i/fill.gif) |