POV-Ray : Newsgroups : povray.binaries.images : Dan's double density algorithm? (16kB) : Re: Dan's double density algorithm? (16kB) Server Time
4 Oct 2024 23:15:55 EDT (-0400)
  Re: Dan's double density algorithm? (16kB)  
From: Dan Connelly
Date: 7 Feb 1999 22:30:27
Message: <36BD08C1.97B10708@flash.net>
Whoops!  My fault.....
that should be "translate y", not "translate -y".

I made the classic mistake of translating the observer rather than the
field.... what I want is the interval from (-1,0) to be "boosted" to
(0,1), which requires a +1 translating.

Sorry...
Dan


"Greg M. Johnson" wrote:
> 
> In a separate post about flames and media, Dan gave advice for getting a density of
y(1-y) which is attached at the end.
> I tried Dan's algorithm and I think that instead I got y^2.
> My code is:
> 
> interior {
>          media {
>                emission rgb 1 //<0.75,0.75,0.75>
>                intervals 30
>                samples 10, 10
>                confidence 0.9999
>                variance 1/1000
>                density {
>                       gradient y
>                       translate -y
>                       }
>                density {
>                        gradient y
>                        }
>               }
>
-- 
http://www.flash.net/~djconnel/


Post a reply to this message

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