POV-Ray : Newsgroups : povray.general : Media Server Time
8 Aug 2024 18:15:55 EDT (-0400)
  Media (Message 1 to 4 of 4)  
From: Eric Gundersen
Subject: Media
Date: 16 Nov 2000 22:16:05
Message: <3A14A2F2.7A599C3E@flash.net>
Hi,

I'm working on my annual Christmas card, and I'm trying to use media to
simulate a string of Christmas lights.  It looks pretty good so far, but
two questions have arisen:

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?

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.

Any thoughts?

Thanks,

Eric


Post a reply to this message

From: Margus Ramst
Subject: Re: Media
Date: 16 Nov 2000 23:17:48
Message: <3A14B1A5.12CE70D3@peak.edu.ee>
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

From: Eric Gundersen
Subject: Re: Media
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

From: Chris Huff
Subject: Re: Media
Date: 17 Nov 2000 21:22:04
Message: <chrishuff-61EFBB.21222117112000@news.povray.org>
In article <3A14A2F2.7A599C3E@flash.net>, gun### [at] flashnet wrote:

> I'm working on my annual Christmas card, and I'm trying to use media 
> to simulate a string of Christmas lights.

Hmm, are you using MegaPOV? If so, you might want to check out the glow 
patch. It might be a good alternative to media for this.


> 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?

Yes. The appearance of media is determined by the distance you see 
through it. If you scale something up by 2, everything will appear twice 
as bright, shadows cast by scattering or absorbing media will be twice 
as dark, etc. because there is twice as much media between any two 
points.


> 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.

You can have as many containers as you want, they are just ordinary 
objects. Are you making sure that all the containers have "hollow" 
specified and are not in any non-hollow objects?

-- 
Christopher James Huff
Personal: chr### [at] maccom, http://homepage.mac.com/chrishuff/
TAG: chr### [at] tagpovrayorg, http://tag.povray.org/

<><


Post a reply to this message

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