POV-Ray : Newsgroups : povray.general : Media : Re: Media Server Time
8 Aug 2024 16:23:35 EDT (-0400)
  Re: Media  
From: Eric Gundersen
Date: 16 Nov 2000 23:30:11
Message: <3A14B454.8E7E0775@flash.net>
Thanks.  I appreciate the input!

Margus Ramst wrote:

> Eric Gundersen wrote:
> >
> > 1)  Are the media effects dependent on the scale of the container?  For
> > example, if my light bulb is contained by a 5 inch or a 50 inch sphere,
> > should I expect different results?
> >
>
> Media density (per unit of volume) remains constant no matter how you scale the
> container. This means the same media in a smaller container will look more
> transparent, because there is less media to "see through".
> If you want the transparency of the media to appear the same after scaling, you
> can do this: let's say Si is the initial scale of your media(container), Sf is
> the final scale, and D is the initial density. The new density for the scaled
> media is:
> (pow((Si.x * Si.y * Si.z) / (Sf.x * Sf.y * Sf.z), 1/3) * D)
>
> > 2)  Can I have more than one media container in a scene?  I have tried
> > to surround each bulb with its own container (a sphere),  but it seems
> > that only one of the containers works.  The rest don't do anything.
> >
>
> Of course you can have multiple containers. Are you sure you did it right? All
> containers need to be hollow, and they all must have a media attached. Here's a
> simple example, with two media containers:
>
> sphere{
>   <-1,0,0>,1
>   pigment{rgbf 1}
>   interior{media{emission 1}}
>   hollow
> }
> sphere{
>   <1,0,0>,1
>   pigment{rgbf 1}
>   interior{media{emission 1}}
>   hollow
> }
>
> --
> Margus Ramst
>
> Personal e-mail: mar### [at] peakeduee
> TAG (Team Assistance Group) e-mail: mar### [at] tagpovrayorg


Post a reply to this message

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