POV-Ray : Newsgroups : povray.newusers : How to render a "volume" function? Server Time
4 Nov 2024 13:01:32 EST (-0500)
  How to render a "volume" function? (Message 1 to 3 of 3)  
From: Kronix
Subject: How to render a "volume" function?
Date: 6 Mar 2003 10:35:04
Message: <web.3e6769be91ba9208dcafb91b0@news.povray.org>
I'm a bit puzzled by something I think should be quite simple.  I have a
knack for making things more complex than they need be...

I have a particular function I'd like to use to fill a cylinder with a
'volume' pattern.  I seem to be able to assign a function pattern to the
surface of an object, but where in the documentation does it discuss
applying a user-defined function to, say, media?

For example, say I have a simple 1/r potential, and I wanted to plot it as a
function of my cylinder's radius.  I could use a simple black-to-white
gradient pigment, and apply this function.  It seems to work fine on the
surface of a cylinder, but my current workaround is to plot a LOT of
cylinders at various radii with transparent colors to see the effect I'm
looking for.  It would be much easier to apply a 'volume' pattern... er, I
think.

Any suggestions?

- Kronix


Post a reply to this message

From: ABX
Subject: Re: How to render a "volume" function?
Date: 6 Mar 2003 10:53:07
Message: <lere6v879po3kqle27n59edv8gc4tth63s@4ax.com>
On Thu,  6 Mar 2003 10:31:10 EST, "Kronix" <kro### [at] hotmailcom> wrote:
> I have a particular function I'd like to use to fill a cylinder with a
> 'volume' pattern.  I seem to be able to assign a function pattern to the
> surface of an object, but where in the documentation does it discuss
> applying a user-defined function to, say, media?

http://www.povray.org/documentation/
http://www.povray.org/documentation/view/197/
http://www.povray.org/documentation/view/200/

Remember that float user-defined function is pattern.

ABX


Post a reply to this message

From: Kronix
Subject: Re: How to render a "volume" function?
Date: 6 Mar 2003 11:25:02
Message: <web.3e67761e19951617dcafb91b0@news.povray.org>
ABX wrote:
>On Thu,  6 Mar 2003 10:31:10 EST, "Kronix" <kro### [at] hotmailcom> wrote:
>> I have a particular function I'd like to use to fill a cylinder with a
>> 'volume' pattern.  I seem to be able to assign a function pattern to the
>> surface of an object, but where in the documentation does it discuss
>> applying a user-defined function to, say, media?
>
>http://www.povray.org/documentation/
>http://www.povray.org/documentation/view/197/
>http://www.povray.org/documentation/view/200/
>
>Remember that float user-defined function is pattern.
>
>ABX
>

Whoops, I missed 'density' altogether.  Sorry for asking the obvious.
Thanks, I'll give it a try.

- Kronix


Post a reply to this message

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