POV-Ray : Newsgroups : povray.general : user-defined media density function : Re: user-defined media density function Server Time
31 Jul 2024 22:20:00 EDT (-0400)
  Re: user-defined media density function  
From: Eric Buddington
Date: 25 Aug 2006 00:10:00
Message: <web.44ee77ce2dcd370abef64010@news.povray.org>
Mike Williams <nos### [at] econymdemoncouk> wrote:
> Wasn't it Eric Buddington who wrote:
> >Is there a way for me to create a radial density pattern of A^Br, where 'r'
> >is the radius and A and B are constants?
>
> You can use any function{} as a media density pattern
>
> http://www.econym.demon.co.uk/isotut/patterns.htm#density
>
> You could #include functions.inc and use f_r(x,y,z) as an expression for
> r, or you could use pow((x*x+y*y+z*z),0.5).

Thank you! I'd been unable to find that in the docs, and was hoping it was
possible. This works far better than the poly_wave approximation I tried
before.

-Eric


Post a reply to this message

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