POV-Ray : Newsgroups : povray.binaries.images : moai : Re: moai Server Time
31 Jul 2024 00:29:20 EDT (-0400)
  Re: moai  
From: Trevor G Quayle
Date: 1 Apr 2011 12:35:00
Message: <web.4d95fe10dc06386b05ef170@news.povray.org>
> >
>
> OK ... so here's what I've come up with and it seems to work.
>
> #declare Intensity = function (LD,FD) { 1/(2/((1+(LD/FD))*(1+(LD/FD)))) };
>
>  From your example I used LD=2400 and FD=4.5 and get 142756 and some
> change ;-) ... If I missed something feel free to set me straight as I'd
> like to include this in [3.4.7.9] along with a small narrative.
>
> Jim

That's exactly it.  However I would maybe modify it slightly for presentation.
You can simplify by removing the double reciprocal (just invert the original
equation).  Also, this is true for fade_power of 2, I would leave fade_power as
part of it for completeness and to avoid confusion:

#declare Intensity = function (LD,FD) {pow(1+(LD/FD),FP)/2};

Also I would perhaps call it 'intensity multiplier' or similar.  If you want a
base intensity of 2, you would multiply this factor by 2, etc.

-tgq


Post a reply to this message

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