POV-Ray : Newsgroups : povray.advanced-users : Density in an object : Re: Density in an object Server Time
28 Jul 2024 10:24:30 EDT (-0400)
  Re: Density in an object  
From: Klemen
Date: 1 May 2006 12:20:01
Message: <web.4456345e46d71bd927caf3dc0@news.povray.org>
"McHannemann" <nomail@nomail> wrote:
> Hi,
>
> I would like to do the following:
> to have a object with media inside, where the density of the
> media is controlled by the x,y,z so that the max density is reached
> at 0,0,0 and the minimum at the border of the object?
>
> any ideas?
>
> Regards,
>
> Thor

Well, you could try to make a density file by randomly shooting out rays
from the given point and sampling along that path, writing the density
value to a 3d density file, then reading that back in as a .ds3 file.
Haven't tried that, though, but there is a galaxy.pov file in the samples
which has structure like that.

But, like Warp said, it would be slow. Very. Especially when you first
generate the density file. After that, it depends on your raytracing
quality settings.


Post a reply to this message

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